ホームページ  >  記事  >  php教程  >  PHP程序设计Zend Framework(ZF)Invalid controller specified

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

WBOY
WBOYオリジナル
2016-06-06 19:49:101647ブラウズ

近来在研究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改成你自己项目文件夹的名字就好了,呵呵

声明:
この記事の内容はネチズンが自主的に寄稿したものであり、著作権は原著者に帰属します。このサイトは、それに相当する法的責任を負いません。盗作または侵害の疑いのあるコンテンツを見つけた場合は、admin@php.cn までご連絡ください。
前の記事:PHP的预定义常量次の記事:php问题$market