php - Fatal error: Undefined class constant 'EXCEPTION_NO_ROUTE' in Zend framework -
i have downloaded zend latest version(zend framework 1.11), created project using command line tool.
also i've created controller in created project. in created controller i've added new method,
<?php class usercontroller extends zend_controller_action { public function init() { /* initialize action controller here */ } public function indexaction() { // action body } public function chataction() { echo 'test'; } } then tried access in browser
http://localhost/user/chat i got following error
fatal error: undefined class constant 'exception_no_route' in f:\xampp\htdocs\z_app\application\controllers\errorcontroller.php on line 16 thanks in advance.
you have wrong zend library included.
check version via echo zend_version::version; in index.php , die() before bootstrapping (as mvc broken).
you may need update include path correct location of 1.11 zend framework library. have multiple versions (i.e. zend studio comes own) installed.
Comments
Post a Comment