Federico Cargnelutti wrote:
ZF maps actions to methods, so I added the possibility to map actions to classes as well. For example, if you have a modular system that uses the MVC pattern, and you add a directory to your module called: actions/:

Hi Federico,
Thanks for the info/suggestion. One possible way I though of introducing custom controller logic was to do it by extending the controllers, and then have the dispatcher look first for the custom controller, and then for the generic one. So you would have:

class BlogController extends Zend_Controller_Action
{
   ...
}

class My_BlogController extends BlogController
{
   ...
}

The dispatcher would look for My_BlogController, and if not found use BlogController.
--
Jack

Reply via email to