【发布时间】:2015-04-28 14:20:48
【问题描述】:
我使用的是 Ubuntu 14.04。 我已经使用 codeigniter 完成了一个项目,并且工作正常。 但是现在我想到了学习 zend 框架并使用本教程在我的机器上安装了 zend 框架 1.12.3 Digital Ocean。
当我尝试访问我创建的新项目时 http://localhost/ZendApp 我得到这个错误
An error occurred
Page not found
Exception information:
Message: Invalid controller specified (ZendApp)
Stack trace:
#0 /home/ZendFramework-1.12.3/library/Zend/Controller/Front.php(954): Zend_Controller_Dispatcher_Standard->dispatch(Object(Zend_Controller_Request_Http), Object(Zend_Controller_Response_Http))
#1 /home/ZendFramework-1.12.3/library/Zend/Application/Bootstrap/Bootstrap.php(97): Zend_Controller_Front->dispatch()
#2 /home/ZendFramework-1.12.3/library/Zend/Application.php(366): Zend_Application_Bootstrap_Bootstrap->run()
#3 /var/www/html/ZendApp/public/index.php(26): Zend_Application->run()
#4 {main}
Request Parameters:
array (
'controller' => 'ZendApp',
'action' => 'index',
'module' => 'default',
)
当我尝试访问我的旧项目时,我已经使用 codeigniter 完成了同样的错误。
An error occurred
Page not found
Exception information:
Message: Invalid controller specified (lankahomes)
Stack trace:
#0 /home/ZendFramework-1.12.3/library/Zend/Controller/Front.php(954): Zend_Controller_Dispatcher_Standard->dispatch(Object(Zend_Controller_Request_Http), Object(Zend_Controller_Response_Http))
#1 /home/ZendFramework-1.12.3/library/Zend/Application/Bootstrap/Bootstrap.php(97): Zend_Controller_Front->dispatch()
#2 /home/ZendFramework-1.12.3/library/Zend/Application.php(366): Zend_Application_Bootstrap_Bootstrap->run()
#3 /var/www/html/ZendApp/public/index.php(26): Zend_Application->run()
#4 {main}
Request Parameters:
array (
'controller' => 'lankahomes',
'action' => 'index',
'module' => 'default',
)
谁能帮我解决这个问题。天呐
【问题讨论】:
标签: php codeigniter zend-framework ubuntu-14.04