找不到控制器

fy1981 2011-02-28 09:47:20
本人在使用zend framework时出的一个错误,就是在打开首页index.php的时候都可以正常显示
但打开其它页面都无法显示(例如127.0.0.1/news),但在Controllers文件夹中是存在NewsController.php这个文件的
显示如下错误:

Fatal error: Uncaught exception 'Zend_Controller_Dispatcher_Exception' with message 'Invalid controller specified (error)' in D:\web\ztw\Zend\Controller\Dispatcher\Standard.php:248 Stack trace: #0 D:\web\ztw\Zend\Controller\Front.php(954): Zend_Controller_Dispatcher_Standard->dispatch(Object(Zend_Controller_Request_Http), Object(Zend_Controller_Response_Http)) #1 F:\myphp\index.php(9): Zend_Controller_Front->dispatch() #2 {main} thrown in D:\web\ztw\Zend\Controller\Dispatcher\Standard.php on line 248


反正就是首页正常,其实都打不开,求解。
...全文
123 1 打赏 收藏 转发到动态 举报
写回复
用AI写文章
1 条回复
切换为时间正序
请发表友善的回复…
发表回复
hikklong 2011-02-28
  • 打赏
  • 举报
回复
controller -> action

没有指定actiong,默认是index,如果view里面没有index.phtml文件,肯定就会报错了

4,251

社区成员

发帖
与我相关
我的任务
社区描述
国内外优秀PHP框架讨论学习
社区管理员
  • Framework
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧