On 03/11/2010 07:24 PM, Matthew Weier O'Phinney wrote:
-- rtskoo<[email protected]>  wrote
(on Wednesday, 10 March 2010, 07:13 PM -0800):
I use zf 1.10 .
I have make a custom contronller plugin now ,which extends from
Zend_Controller_Plugin_Abstract. But where to put my custom contronller
plugin? I have added this in application.ini already :
resources.frontController.plugins.MyPlugin = "MyPlugin"
Thank you!
It needs to be somewhere it can be autoloaded -- either in your
include_path, or in a place where an autoloader can locate and load it.

If you're calling it simply "MyPlugin", put it in library/MyPlugin.php.
However, I'd advise adding at least a vendor prefix to it: Foo_MyPlugin
in library/Foo/MyPlugin.php.

Out of curiosity, aren't you supposed to put your plugins in application/plugins or application/modules/default/plugins?


--

With warm regards,
Sudheer. S
Tech stuff: http://techchorus.net
Business: http://binaryvibes.co.in

Reply via email to