Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Where to put plugins in a Zend Framework website

The question is quite simple : I have a controller plugin for Zend Framework.

Should I put it in the "library/Plugin" folder, or in "application/plugins".

(btw for now it is in library/Plugin but this works on Linux and Mac Os X, but not Windows so i figured maybe that is not the right place)

Thank you

like image 814
Matthieu Napoli Avatar asked Mar 08 '10 10:03

Matthieu Napoli


People also ask

What is controller plugin?

A controller plugin is a class which extends the functionality of all controllers in some way. Without plugins, to extend the functionality of all controllers, you would have to create a custom base class, say BaseController , and derive other controllers from that base class.


1 Answers

If its a controller plugin it goes in "application/plugins".
If it's a general purpose plugin (ie Utility Classes and such) it goes in /library/*, where * follows the Zend Loader rules.

like image 86
clyfe Avatar answered Oct 06 '22 00:10

clyfe