Archive for January, 2010

Bradley Holt on Zend Framework

Bradley Holt recently gave a presentation to his local user group on Zend Framework. He has now posted the slides on his blog along with a sample application, called Postr on github.

He has is now following up with a series of blog posts on aspects of Zend Framework. The first one, Bootstrapping Zend Framework Applications is up and well worth reading.

Posted by Rob on 31st January 2010 under Around the web | Comments Off

Zend Framework tips and tricks

Juozas has posted a great article about tips and tricks to consider when developing Zend Framework applications.

He divides his tips into five main areas:

  • Separate logic
  • Globals
  • Use form values, not request
  • Do not rely or use exit()/die()
  • Use a framework, not PHP

Everyone should read it!

Posted by Rob on 29th January 2010 under Around the web | Comments Off

Active module based config with Zend Framework

BinaryKitten has posted an article on how do module specific bootstrapping within a module’s bootstrap class:

The Concept I wanted to achieve was to have unique Configuration based upon the module that was active. The Issue with this is that the Bootstrap files and the _init functions for ALL modules are called with no bias as to which module is active. Thus if you created a 3 modules wanted to make menu alterations in one, those alterations will be applied to all. I also wanted to have a a system where if i added extra modules i could just add extra functions to the bootstrap file and it would work in a similar way.

She then goes on to post a solution using a front controller plugin that calls back into the currently active module’s bootstrap to execute methods that start with _activeInit.

Go have a read! It’s a nice, extensible solution to the problem

Posted by Rob on 5th January 2010 under Around the web | 1 Comment »