Simon R Jones writes a very helpful article about the stack index (the order you fire plugins) and how to customize it; Zend Framework Controller plugins are a powerful way to inject logic into your controller system at various points, such as before and after an action dispatch. Plugins are run in the order they […]
Graham Anderson posted an useful workaround for the module specific layout problem; The default layout plugin will accept a stack of paths in LIFO order. This allows a very simple hack to always ensure that any module can have it’s own default layout which will automatically override the default module layout. class App_Controller_Plugin_Layout extends Zend_Controller_Plugin_Layout […]
Kevin Schroeder writes an excellent article about the MVC lifecycle thats a must read for anyone even thinking about writing ZF plugins; Matthew wrote up an article on modules in Zend_Application and that got me thinking a little bit. When I have done training for Zend Framework, one of the things that mystifies students to […]
Matthew Weier O’Phinney shares a bit of very useful code to inject request params into a Zend Framework request object from a JSON or XML POST request. “Below is a plugin I use to translate JSON or XML raw post request data to request user parameters. Note that it expects a “Content-Type” header of either […]
Ryan Mauger wrote a good article on tidying things behind the scenes, during development, definitely worth a look; With Zend Framework there is an easy way to ensure that you always create valid HTML in your applications. This involves the use of a simple Front Controller Plugin, and the php Tidy component. Valid HTML is important […]
As an update to the method of having everything related to Zend_Translate and Zend_Locale in the Bootstrap, here is an alternative using an Controller Plugin that does the grunt work of validating, selecting and updating the Zend_Locale, Zend_Registry & Zend_Session using Zend_Session_Namespace. And we are using poedit .po & .mo files as the source as usual.
Thijs Feryn writes an excellent article on how to convert your entire MVC app or one or more controllers into a XML service. I actually have this one in a production environment and it works like a charm.
That’s right folks, in this blog post I’ll show you how you can convert your entire MVC application into a REST-style XML webservice. And I’m not talking about refactoring tons of code … NO, we’ll plug this option in without changing a single thing to your action controllers.