zend-framework

Zend: Separate default controller for default module vs custom module?

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...

Zend Framework zend_db_select ORDER

$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...

how to validate zend form with jquery?

hi all how i could validate zend framework forms with jquery? any idea ? ...

problem with Zend_View_Helper_* and autoloading

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...

How to create a datetime validator in a Zend Framework form?

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...

Pgpool, ZendFramework, PDO

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. ...

Zend: Strategy for admin login

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...

Zend_ProgressBar: is there a god example / tutorial on how to use it?

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...

can we change Description in zend framework in client side with jquery or javascripts?

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? ...

why is the Zend Framework API documentation that poor?

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? ...

Can I use Facebook's hiphop with frameworks like Zend Framework, cakephp, symphony

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? ...

Zend: How to fetch record from Database without considering case sensitive ?

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...

Is it good idea to use Zend Framework in medium scale enterprise website?

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 ?

What is difference between mysql,mysqli and pdo ? Which one is the best suited to use with PHP-MYSQL? ...

Can I use Zend_Log to handle PHP errors?

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...

Zend_ProgressBar

Hi Anyone have the idea to implement Zend_ProgressBar .. If dont mind pls write a sample code... Thanks & Regards Nisanth ...

zend framework : set imap mail to read, or move it to a folder

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 ...

Using actionHelper without returning layout in output

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...

How to represent different application domains in an ACL?

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...

Custom View Helper is never run when extending Zend_Form_Element_File

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...