Extending the IndexController with a BaseController in Zend
Posted
by BillA
on Stack Overflow
See other posts from Stack Overflow
or by BillA
Published on 2009-10-02T16:08:43Z
Indexed on
2010/06/14
12:52 UTC
Read the original article
Hit count: 312
I'm trying to extend my controllers with a global base controller as such:
class BaseController extends Zend_Controller_Action {
// common controller actions
public function listAction() {
// do stuff
}
}
class IndexController extends BaseController {
// index controller specific actions
}
class LoginController extends BaseController {
// login controller specific actions
}
But I get this error: PHP Fatal error: Class 'BaseController' not found in /var/www/Zend/project/application/controllers/IndexController.php on line 3
Any ideas on how to get Zend to "see" this controller?
© Stack Overflow or respective owner