zend-framework

How to handle Zend_Exception's in preDispatch or init of an action when using a base controller?

As mentioned in the Zend Framework manual, I created a base controller. Subclassing the Action Controller By design, Zend_Controller_Action must be subclassed in order to create an action controller. At the minimum, you will need to define action methods that the controller may call. Besides creating useful function...

Zend_Framework -- How do I put Javascript in the layout?

I need a method of inserting javascript which is controller/action specific into a layout. That javascript needs to go inside the <head> of the document, far from where normal content is placed. I already have an infrastructure in place which allows use of multiple views per page, and the Zend_Layout I already have takes full advantage o...

Zend PDF - Permission problem

I have a simple problem but somehow I cannot solve it. I want to create a pdf file and therefore I tried the example provided by Zend (here). When I run the code I get the following error: "PDF error: Can not open 'example.pdf' file for writing". I think the problem are the permissions. But I don't know which file should get the write pe...

how to remove "public/" from http://localhost/myscript/public/ in Zend Framework

By default my script is accessible by using this url http://localhost/myscript/public/. But i need to access it by this url http://localhost/myscript/. How can i do this in Zend Framework. ...

Zend Navigation - various navigation blocks

Hi, I have a navigation.xml file: <?xml version="1.0" encoding="UTF-8"?> <config> <nav> <programm_nav> <label></label> <uri>#</uri> <pages> <all> <label>test1</label> <resource>default:programme</resource> <module...

https request on some pages but not on all pages zend framework

Hello, I need to put https on some of the URL but not on all the URL. I am using zend URl view helper for all the links. I have a *.example.com SSL certificate for whole site. Now I open site with https://www.example.co, then all the link on home page or other pages contains https in URL. How can I make some specific request on the http...

create upload progress bar using zend and jquery

hi , i have to create upload center site like speedyshare.com with zend but i don't have any idea how to create progress bar to show upload progress . any idea or a tutorial to doing this ? ...

Zend code standard, how I can check it?

What's the best way to check zend code standard? I'm thinking the PHPCS (PHP Code Sniffer) not efficiently because it not complain about php doc and many other things :( Doc: http://framework.zend.com/manual/en/coding-standard.html ...

Zend_Acl - Role per resource

I'm trying to implement Zend_Acl. I've never used it before and whilst I can get basic acl stuff working on the controller/action level, I need users to have different roles on different projects, say admin, editor, etc. So a user could create projects and they would be able edit/delete their own projects, but they may also be invited...

Multiple Databases with Zend

Hey there, I'm building an application (using the zend framework) where we will have multiple clients who login and use the application, and each of these clients will be storing lots of data about their users (I'm using MySQL btw). Basically I'm wondering 2 things: Is having multiple databases, one for each client (ie. ipd_client_CL...

Zend_Form action and method

Zend_Form action and method shows by default <form action="" method="post"> ... My wish is not like that... Just be written <form> .. Is that possible ?? How can I do ??? ...

Partial in layout error

So this is my project directory structure: application/ layouts/ scripts/ default.phtml partials/ partial.phtml modules/ default/ controllers/ models/ forms/ views/ scripts/ public/ In the default.phtml layotu I'm trying to include a pa...

How to format formRadio() Zend Framework

Hi I'm using formRadio() to display two options with radio buttons. Example <li><?php echo $this->formRadio('johnsmith', '1', array(), array('1' => 'Yes', '0' => 'No'), ' '); ?></li> Getting HTML output <li> <label for="johnsmith-1"> <input type="radio" name="johnsmith" id="johnsmith-1" value="1" checked="checked"> Yes ...

What is best way to catch errors and exceptions in error.log file in Zend Application?

I want to implement errorlogger in my zend application. I have created logger which I am using for debugging but Can anybody tell me what is the best way to log errors so that they are more readable in file. I have seen Sugarcrm logger which logs error in proper format. Does anybody have created logger like this. So that I can save my ...

Where do i go to modify the 500 error page for Magento?

I am making a site live for a client and i want to debadge all instances of Magento on the front end, but I can seem to find where modify the 500 error template. ...

What does Zend_Db_Adapter_Abstract::fetchOne return on failure (i.e. no rows returned)?

Doesn't seem that failure mode for that function is documented anywhere I've been able to find.... ...

Zend_Acl Whitelist VS Blacklist?

Should i use a whitelist or blacklist approach to Zend_Acl? By that i mean deny any and all resources to everyone and write each single allow case for each role [blacklist] or allow all resources and write each deny care for each role [whitelist] ...

How to intercept all Zend_DB_Adapter Errors?

I'm using Zend DB Adapter class from Zend Framework in a non-zend web application (don't need the whole framework). I need to intercept/handle all DB exceptions to create a custom error page. By default in case of any errors the adapter shows its own plain page with error message like "PDO Exception...". Is there a way to customize this ...

Storing Zend subclasses

In my Zend folder structure, where should I keep classes that inherit or subclass Zend classes? ...

how to setup zend framework with pdt in mac ?

Hi friends is there a fast way to setup zend framework with eclipse pdt in mac ? I did try with netbeans but sucks big time, even worse is netbeans command line tool which confuses a lot. I also don't like zendeclipse which cost a lot when same feature is free on eclipse pdt. ...