-- 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.

-- 
Matthew Weier O'Phinney
Project Lead            | [email protected]
Zend Framework          | http://framework.zend.com/
PGP key: http://framework.zend.com/zf-matthew-pgp-key.asc

Reply via email to