News Feed
Sections
News Archive


Community Events
php|tek 2008 PHP Conference



feed this:

Zend Developer Zone:
Front Controller Plugins in Zend Framework
0 comments :: posted Tuesday April 15, 2008 @ 07:58:52
voice your opinion now!

On the Zend Developer Zone, there's a new article that examines one of the key components to just about any framework out there - the front controller.

Like Action Helpers, which I've discussed in a previous article, Front Controller Plugins in Zend Framework are often considered an esoteric, advanced subject. They are, however, remarkably simple to implement, and provide an easy way to extend the functionality and behavior of your entire web application.

The article (from Matthew Weir O'Phinney) looks at the hooks defined in the controller, like routeStartup and preDispatch, and how to work with the controller to add in/get plugins from it. He provides a two examples too: Application Initialization Plugin and a Caching Plugin.

tagged with: zendframework front controller hook route dispatch


Alexander Netkachev's Blog:
A little bit more about Zend_Controller plugins
0 comments :: posted Tuesday October 10, 2006 @ 08:18:00
voice your opinion now!

In his latest post, Alexander Netkachev digs a little deeper into the Zend Framework and looks at the Zend_Controller class and its plugin support.

Zend_Controller_Plugin is not covered yet in the documentation but it is a powerful way of extending a controller. Briefly, Zend_Controller_Plugin is used for extending controller functionality by attaching listeners to events, which are fired (or trigged) by the controller classes.

He talks about the plugin interface, how it hooks into the controller and defines the relationship with some pseudo-code (showing implements versus extends). There's talk of the Zend_Controller_Plugin_Broker class and the Zend_Controller_Front. He looks in detail at this last class, showing how it helps to handle incoming requests for the plugin functionality and veen includes working code you demonstrate how.

tagged with: zend framework plugin controller broker dispatch tutorial zend framework plugin controller broker dispatch tutorial


zend zendframework package cakephp mysql security code database ajax developer releases pecl PEAR job book application PHP5 framework release conference

All content copyright, 2008 PHPDeveloper.org :: info@phpdeveloper.org - Powered by the Solar PHP Framework