See my related question: Proper location for custom Zend_Action_Controller
I just put it under library/APPNAMESAPCE/Action/Contoller and threw it into application.ini :
autoloadernamespaces.APPNAMESPACE = "APPNAMESPACE_" appnamespace = "APPNAMESPACE_"
Obviously, APPNAMESPACE should be replaced with my application namespace. You should already have a second line for automatic loading of models / forms, etc.
I also use library/APPNAMESPACE/ for any other subclasses of specific applications of the standard Zend Framework classes.
Update. Using a plugin has been suggested and certainly seems like a good idea for this use case. Guess where I keep my plugins for specific applications?
library/APPNAMESPACE/Action/Contoller/Plugin
Of course, if this is a plugin that you will use for several applications, it would be advisable to put it in a shared library.
source share