Using a different Zend_Layout for each module
Posted: March 20th, 2009 | Author: Jan Gorman | Filed under: Code | Tags: Code, Layout, PHP, Zend Framework, Zend_Layout | 2 Comments »Time for another little code hint. I really like the Zend-Framework and we’ve been using it very successfully on quite a large project for the last couple of months now. We’ve extended the basis quite a bit with plenty of wrappers to fit our client’s needs and the way the framework is put together all of this works very elegantly.
One of the shortcomings I find is the way layouts are handled. From my experience, Zend_Layout is one of the hardest parts to grasp for beginners anyway, the lack of a bulit in support for modules makes it even harder. Controller-Plugins to the rescue!