近来在研究ZF,其中新手总会把下载来的代码运行看下效果,或者是复制一下运行,我也是一样,无脑出现了一个错误叫做: 'Invalid controller specified Fatal error : Uncaught exception 'Zend_Controller_Dispatcher_Exception' with message 'Invalid cont
近来在研究zf,其中新手总会把下载来的代码运行看下效果,或者是复制一下运行,我也是一样,无脑出现了一个错误叫做:
享有盛誉的PHP高级教程,Zend Framework核心开发人员力作,深入设计模式、PHP标准库和JSON 。 今天,PHP已经是无可争议的Web开发主流语言。PHP 5以后,它的面向对象特性也足以与Java和C#相抗衡。然而,讲述PHP高级特性的资料一直缺乏,大大影响了PHP语言的深入应用。 本书填补了这一空白。它专门针对有一定经验的PHP程序员,详细讲解了对他们最为重要的主题
468
立即学习“PHP免费学习笔记(深入)”;
立即学习“PHP免费学习笔记(深入)”;
'Invalid controller specified
立即学习“PHP免费学习笔记(深入)”;
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改成你自己项目文件夹的名字就好了,呵呵
PHP怎么学习?PHP怎么入门?PHP在哪学?PHP怎么学才快?不用担心,这里为大家提供了PHP速学教程(入门到精通),有需要的小伙伴保存下载就能学习啦!
Copyright 2014-2025 https://www.php.cn/ All Rights Reserved | php.cn | 湘ICP备2023035733号