Home  >  Article  >  php教程  >  PHP程序设计Zend Framework(ZF)Invalid controller specified

PHP程序设计Zend Framework(ZF)Invalid controller specified

WBOY
WBOYOriginal
2016-06-06 19:49:101646browse

近来在研究ZF,其中新手总会把下载来的代码运行看下效果,或者是复制一下运行,我也是一样,无脑出现了一个错误叫做: 'Invalid controller specified Fatal error : Uncaught exception 'Zend_Controller_Dispatcher_Exception' with message 'Invalid cont

     近来在研究ZF,其中新手总会把下载来的代码运行看下效果,或者是复制一下运行,我也是一样,无脑出现了一个错误叫做:

 

 

'Invalid controller specified

 


Fatal error: Uncaught exception 'Zend_Controller_Dispatcher_Exception' with message 'Invalid controller specified (My_All)' in D:/wamp/www/My_All/2011/tiesuo/zend/library/Zend/Controller/Dispatcher/Standard.php:248 Stack trace: #0 D:/wamp/www/My_All/2011/tiesuo/zend/library/Zend/Controller/Front.php(954): Zend_Controller_Dispatcher_Standard->dispatch(Object(Zend_Controller_Request_Http), Object(Zend_Controller_Response_Http)) #1 D:/wamp/www/My_All/2011/tiesuo/zend/index.php(27): Zend_Controller_Front->dispatch() #2 {main} thrown in D:/wamp/www/My_All/2011/tiesuo/zend/library/Zend/Controller/Dispatcher/Standard.php on line 248

这么很多的错误,网上搜了没看到比较理想的结果,都是特别专业的,看不太懂,最后才发现原来错误在项目路径

$frontController->setBaseUrl('/zends')//设置基本路径

这句话,把zends改成你自己项目文件夹的名字就好了,呵呵

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Previous article:PHP的预定义常量Next article:php问题$market