News Feed
Sections




News Archive
Looking for more information on how to do PHP the right way? Check out PHP: The Right Way

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

PHPEveryDay.com: New Zend Framework Articles/Tutorials

MaltBlue.com: Zend Form Mastery with Zend Config - Part 1, Custom Filter Paths

Alexander Netkachev's Blog: Syndicate content with Zend Framework Zend_Feed classes

Raphael Stolt's Blog: Teaching the Zend REST server to talk JSON

Matthew Weier O'Phinney's Blog: Autoloading Doctrine and Doctrine entities from Zend Framework


Community Events





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


tips community symfony unittest framework language update package zendserver library api interview laravel release podcast deployment introduction series opinion install

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