News Feed
Jobs Feed
Sections




News Archive
Robert Basic's Blog:
Loading custom module plugins
July 20, 2010 @ 14:04:43

Robert Basic has a quick new post to his blog today showing how to load custom module plugins in your Zend Framework application.

I was trying to load a Front Controller plugin which resides in app/modules/my_module/controllers/plugins/ and not in the 'usual' lib/My_App/Plugin/. I want this plugin to be called in every request and I want the plugin file to be under it's 'parent' module.

To solve the problem he added a path to the Zend_Application_Module_Autoloader as a resource and registered it in the front controller. He includes some code to show how it works - a simple bootstrap with two _init functions, one for the news autoloading and another for plugins.

0 comments voice your opinion now!
plugin custom module zendframework autoload bootstrap


blog comments powered by Disqus

Similar Posts

Robert Basic's Blog: Helping out with Zend Framework 2

Zend Developer Zone: PHP: Performance, Scalability, and Web Services Podcast

Zend Developer Zone: Who Uses the Zend Framework?

Richard Thomas' Blog: Direction of Zend Framework?

Rob Allen's Blog: Luke - Lucene Index Toolbox


Community Events









Don't see your event here?
Let us know!


unittest language framework object testing api release database community zendframework2 introduction phpunit interview event development functional code composer example opinion

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