Extending the IndexController with a BaseController in Zend

前端 未结 4 1569
眼角桃花
眼角桃花 2021-02-08 15:17

I\'m trying to extend my controllers with a global base controller as such:

class BaseController extends Zend_Controller_Action {
 // common controller actions
          


        
4条回答
  •  别跟我提以往
    2021-02-08 15:39

    the quick solution that does not take advantage of the autoloader functionality is to require_once '/path/to/BaseController.php' in the index-controller file.

    If you have set-up autocontroller, then it can not find it, so you should consider checking what's wrong. Try the previous approach and inform on results.

提交回复
热议问题