Archive for the ‘Zend Framework’ Category

Zend Framework Routes and Navigation

Wednesday, March 10th, 2010

Having spent a few hours attempting to work out why Zend_Navigation was refusing to place the built-in “active” css class onto my navigation elements while being in the correct module/controller/action I finally resolved the issue:

It came down the custom routes!

If you have custom routes and you find your navigation is not correctly highlighting  it’s probably because you haven’t tied in your route to your navigation elements.

It requires very explicit setting to work.

Below is an example of how it should be structured:

 (more...)

Zend Loader isReadable causing trigger error problem

Monday, December 8th, 2008

I noted recently while writing a debugging error logging plugin for the Zend Framework that I was getting some E_WARNING’s logged in the database table it was utilising.

Having analysed the information a little further I realised that the framework was doing something rather funky. I had structured the application to be a modular layout as exemplified by the wiki guide for framework layout. I’d set up the module, controller and view components into their own directory (called “account”) and all was working fine. The Zend_Form was rendering correctly as I expected it to.

(more…)