yII 框架问题 CHttpException Unable to resolve the request "site/error". (D:\htdocs\y

seuxys 2015-03-30 05:15:05
Unable to resolve the request "site/error". (D:\htdocs\yii\framework\web\CWebApplication.php:286)

#0 D:\htdocs\yii\framework\base\CErrorHandler.php(368): CWebApplication->runController('site/error')
#1 D:\htdocs\yii\framework\base\CErrorHandler.php(296): CErrorHandler->renderError()
#2 D:\htdocs\yii\framework\base\CErrorHandler.php(133): CErrorHandler->handleError(Object(CErrorEvent))
#3 D:\htdocs\yii\framework\base\CApplication.php(824): CErrorHandler->handle(Object(CErrorEvent))
#4 D:\htdocs\yii\footballTeam\protected\views\playerinfor\index.php(27): CApplication->handleError(2, 'Invalid argumen...', 'D:\htdocs\yii\f...', 27, Array)
#5 D:\htdocs\yii\framework\web\CBaseController.php(126): require('D:\htdocs\yii\f...')
#6 D:\htdocs\yii\framework\web\CBaseController.php(95): CBaseController->renderInternal('D:\htdocs\yii\f...', Array, true)
#7 D:\htdocs\yii\framework\web\CController.php(869): CBaseController->renderFile('D:\htdocs\yii\f...', Array, true)
#8 D:\htdocs\yii\framework\web\CController.php(782): CController->renderPartial('index', Array, true)
#9 D:\htdocs\yii\footballTeam\protected\controllers\PlayerInforController.php(17): CController->render('index', Array)
#10 D:\htdocs\yii\framework\web\actions\CInlineAction.php(49): PlayerInforController->actionInfor()
#11 D:\htdocs\yii\framework\web\CController.php(308): CInlineAction->runWithParams(Array)
#12 D:\htdocs\yii\framework\web\CController.php(286): CController->runAction(Object(CInlineAction))
#13 D:\htdocs\yii\framework\web\CController.php(265): CController->runActionWithFilters(Object(CInlineAction), Array)
#14 D:\htdocs\yii\framework\web\CWebApplication.php(282): CController->run('Infor')
#15 D:\htdocs\yii\framework\web\CWebApplication.php(141): CWebApplication->runController('playerInfor/Inf...')
#16 D:\htdocs\yii\framework\base\CApplication.php(184): CWebApplication->processRequest()
#17 D:\htdocs\yii\footballTeam\index.php(13): CApplication->run()
#18 {main}
一直显示这个问题,该怎么解决。
...全文
2113 1 打赏 收藏 转发到动态 举报
写回复
用AI写文章
1 条回复
切换为时间正序
请发表友善的回复…
发表回复
「已注销」 2015-04-02
  • 打赏
  • 举报
回复
没在config/main.php里配置error的errorHandler吧? 试试在components里加入 'errorHandler'=>array( 'errorAction'=>'error/index', ), 以指定error的错误响应模块

4,251

社区成员

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

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