Zend Framework: extending a custom base controller from Zend_Controller_Action

I want my controllers to be extended from my base controller (not from Zend_Controller_Action).

How can I extend the base Contoller from Zend_Contoller_Action. And where will this customizable base controller be located so that it is accessible to other collectors.

Thanks in advance

+3
source share
2 answers

To extend a record:

abstract class Mylib_YourBaseController extends Zend_Contoller_Action{
}

Create a directory with the name Mylibin the same location as the library Zend.

+2
source
My_Controller_Action extends Zend_Controller_Action { ... }

library/My/Controller/Action.php, app.ini( ) My, , , My_Controller_Action.

+1

Source: https://habr.com/ru/post/1796598/


All Articles