What I'm trying to achieve is to use the news controller as the default controller for my default module, and my index controller for my admin module.
As of right now, because my Admin Bootstrap is being applied, my default module's default controller name is now index instead of news ( I want the latter ). The admin itself is fine. Ho...
$select->where('MATCH(text,phone,phone2,email,email2,www,gadi,augums,skype) AGAINST(?)',$searching_string);
$select->order('MATCH(text,phone,phone2,email,email2,www,gadi,augums,skype) AGAINST(?) DESC',$searching);
Getting error:
Message: SQLSTATE[HY093]: Invalid parameter number: no parameters were bound
The problem seems in...
hi all
how i could validate zend framework forms with jquery?
any idea ?
...
I have set the autoloader to use the Fallback Autoloader like this:
$autoloader=Zend_Loader_Autoloader::getInstance();
$autoloader->setFallbackAutoloader(true);
If I look at php errors, a notice is generated for every call to a Zend_View_Helper with it trying to read the helper at for example: /var/www/arc/views/helpers/. Here is a sa...
By default a Zend Framework date validator uses the date format yyyy-MM-dd:
$dateValidator = new Zend_Validate_Date();
But I want to add hour and minute validation. In other words, I want to require the user to enter the hour and minute. But the following does not work:
$dateValidator = new Zend_Validate_Date('yyyy-MM-dd hh:ii');
I...
have 2 computers with 2 db Postgresql
PHP with PDO
Work with pgpool
Often times i recive error
ERROR: pgpool detected difference of the number of inserted, updated or deleted tuples.
OR Error that connection is out
Without pgpool all work.
May be some one know where is a problem.
...
When a user is a guest, and he accesses /admin/ I would like that to redirect to /admin/login and when a user is in the default module and accesses a resource which he doesn't have access to, I want it to redirect to /error.
Assuming /admin is a module, how could I accomplish this? Here's what I have so far:
<?php
class KG_Controller_P...
I'm trying to use Zend_ProgressBar in my project (made using MVC in Zend Framework).
Unfortunately, I cannot find any full example on how to use it. Zend Programmer's Reference Guide has only some code snippets, which are not enough for me. Basically, I don't know how incorporate Zend_ProgressBar with some action in a controller and a...
i have created a form with zend framework and this form have some elements that all elements have a description , i set description with setDescription in design time, i want to know can
i change this Description in client side with jquery or javascripts?
...
is it my browser that doesn't work with their API online documentation?
the structure of it seems to be very bad compared to the java api online documentation and the yii api online documentation.
i am new to zend, so i wonder, should it be like that?
...
Yesterday Facebook launched HipHop, a sourcecode-converter from php to c++. The set of php functions and constructions is more limited that standard php.
Are the current popular php frameworks (ZF, CakePHP, symphony) compatible with HipHop? If not, which parts of this frameworks are not usable?
...
I am using Zend Framework. I want to fetch record from database without considering case sensitive.
This is my Person Table:
Id|Name |Gender|Occupation
-----------------------------------
1 |Naveed|Male |Software Engineer
-----------------------------------
2 |Ali |Male |Software Developer
Now If I use the following strings to s...
Though this thread recommends using it, I've few concerns:
I started with Zend Framework 1.6 like 8 months ago. Now they've released 1.10. So they're releasing new version in every 2 months.
There are several things which have been drastically changed (like bootstrap class in main application folder, it wasn't there earlier. It was sim...
What is difference between mysql,mysqli and pdo ?
Which one is the best suited to use with PHP-MYSQL?
...
I'm developing a web service with Zend, more specifically I'm Zend_Amf for interop with Adobe Flex. The problem with this is that I can not easily see PHP errors because the Flex debugger won't display the actual answers from the server unless they are proper Amf. If I visit the Zend_Amf endpoint with the Web Browser I don't get any erro...
Hi
Anyone have the idea to implement Zend_ProgressBar .. If dont mind pls write a sample code...
Thanks & Regards
Nisanth
...
Hi overflowers,
After reading a message's state in Zend_Mail_Storage_Imap with $message->getHeaders(). How do I then set that mail as read?
setHeaders(Zend_Mail_Storage::FLAG_SEEN);
Thanks,
Dan
...
I call an action helper in one of my views using the following code
echo $this->action('foo', 'bar');
The fooAction in the barController does its thing and outputs a list of pages. However, the list has the layout in the output again, which is mightily irritating. If I disable the layout in the fooAction, this causes layout to be comp...
I am working on a web application where different user groups have different access to
resources. So far nothing special I guess, but there is a caveat;
the application is divided into "domains" so that each of our client organizations
has their own content. Here I am using a simpler model to illustrate my problem.
Each domain has
the...
Hi,
I want my own form element based on Zend_Form_Element_File.
My Problem: the custom view helper I created is never run. Instead, always the FormFile Viewhelper is run.
When I inherit from Zend_Form_Element_Xhtml, my custom view helper works.
Does not work:
class XY_Model_Form_Imageu extends Zend_Form_Element_File
{
public $helper...