littlerunner
- littlerunner 2016-07-02 已签到连续签到1天,获得了5个金钱
目前的生产工作使用不到。但是感觉好强大。
- littlerunner 2016-06-04 已签到连续签到1天,获得了5个金钱
- littlerunner 发表了说说打卡
- littlerunner 回复了 littlerunner 的评论
因为不熟悉yii。所以我只好把所有log都打出来给您看了--!。我的环境是centos php7 nginx
在访问localhost/yii-master/frontend/web/index.php时的报错如下:An Error occurred while handling another error: yii\base\InvalidParamException: The view file does not exist: /home/study/yii-master/frontend/views/site/error.php in /home/study/yii-master/vendor/yiisoft/yii2/base/View.php:226 Stack trace: #0 /home/study/yii-master/vendor/yiisoft/yii2/base/View.php(149): yii\base\View->renderFile('/home/study/yii...', Array, Object(frontend\controllers\SiteController)) #1 /home/study/yii-master/vendor/yiisoft/yii2/base/Controller.php(371): yii\base\View->render('error', Array, Object(frontend\controllers\SiteController)) #2 /home/study/yii-master/vendor/yiisoft/yii2/web/ErrorAction.php(108): yii\base\Controller->render('error', Array) #3 [internal function]: yii\web\ErrorAction->run() #4 /home/study/yii-master/vendor/yiisoft/yii2/base/Action.php(92): call_user_func_array(Array, Array) #5 /home/study/yii-master/vendor/yiisoft/yii2/base/Controller.php(151): yii\base\Action->runWithParams(Array) #6 /home/study/yii-master/vendor/yiisoft/yii2/base/Module.php(455): yii\base\Controller->runAction('error', Array) #7 /home/study/yii-master/vendor/yiisoft/yii2/web/ErrorHandler.php(85): yii\base\Module->runAction('site/error') #8 /home/study/yii-master/vendor/yiisoft/yii2/base/ErrorHandler.php(109): yii\web\ErrorHandler->renderException(Object(yii\web\NotFoundHttpException)) #9 /home/study/yii-master/vendor/yiisoft/yii2/web/Application.php(98): yii\base\ErrorHandler->handleException(Object(yii\web\NotFoundHttpException)) #10 /home/study/yii-master/vendor/yiisoft/yii2/base/Application.php(375): yii\web\Application->handleRequest(Object(yii\web\Request)) #11 /home/study/yii-master/frontend/web/index.php(19): yii\base\Application->run() #12 {main} Previous exception: yii\web\NotFoundHttpException: 页面不存在 in /home/study/yii-master/frontend/controllers/PageController.php:19 Stack trace: #0 [internal function]: frontend\controllers\PageController->actionIndex('') #1 /home/study/yii-master/vendor/yiisoft/yii2/base/InlineAction.php(55): call_user_func_array(Array, Array) #2 /home/study/yii-master/vendor/yiisoft/yii2/base/Controller.php(151): yii\base\InlineAction->runWithParams(Array) #3 /home/study/yii-master/vendor/yiisoft/yii2/base/Module.php(455): yii\base\Controller->runAction('index', Array) #4 /home/study/yii-master/vendor/yiisoft/yii2/web/Application.php(84): yii\base\Module->runAction('page/index', Array) #5 /home/study/yii-master/vendor/yiisoft/yii2/base/Application.php(375): yii\web\Application->handleRequest(Object(yii\web\Request)) #6 /home/study/yii-master/frontend/web/index.php(19): yii\base\Application->run() #7 {main}
@yidashi 有这句,这两句在一起
'as ThemeBehavior' => \frontend\components\ThemeBehavior::className(),'as RouteBehavior' => \frontend\components\RouteBehavior::className(),
- littlerunner 回复了 littlerunner 的评论
因为不熟悉yii。所以我只好把所有log都打出来给您看了--!。我的环境是centos php7 nginx
在访问localhost/yii-master/frontend/web/index.php时的报错如下:An Error occurred while handling another error: yii\base\InvalidParamException: The view file does not exist: /home/study/yii-master/frontend/views/site/error.php in /home/study/yii-master/vendor/yiisoft/yii2/base/View.php:226 Stack trace: #0 /home/study/yii-master/vendor/yiisoft/yii2/base/View.php(149): yii\base\View->renderFile('/home/study/yii...', Array, Object(frontend\controllers\SiteController)) #1 /home/study/yii-master/vendor/yiisoft/yii2/base/Controller.php(371): yii\base\View->render('error', Array, Object(frontend\controllers\SiteController)) #2 /home/study/yii-master/vendor/yiisoft/yii2/web/ErrorAction.php(108): yii\base\Controller->render('error', Array) #3 [internal function]: yii\web\ErrorAction->run() #4 /home/study/yii-master/vendor/yiisoft/yii2/base/Action.php(92): call_user_func_array(Array, Array) #5 /home/study/yii-master/vendor/yiisoft/yii2/base/Controller.php(151): yii\base\Action->runWithParams(Array) #6 /home/study/yii-master/vendor/yiisoft/yii2/base/Module.php(455): yii\base\Controller->runAction('error', Array) #7 /home/study/yii-master/vendor/yiisoft/yii2/web/ErrorHandler.php(85): yii\base\Module->runAction('site/error') #8 /home/study/yii-master/vendor/yiisoft/yii2/base/ErrorHandler.php(109): yii\web\ErrorHandler->renderException(Object(yii\web\NotFoundHttpException)) #9 /home/study/yii-master/vendor/yiisoft/yii2/web/Application.php(98): yii\base\ErrorHandler->handleException(Object(yii\web\NotFoundHttpException)) #10 /home/study/yii-master/vendor/yiisoft/yii2/base/Application.php(375): yii\web\Application->handleRequest(Object(yii\web\Request)) #11 /home/study/yii-master/frontend/web/index.php(19): yii\base\Application->run() #12 {main} Previous exception: yii\web\NotFoundHttpException: 页面不存在 in /home/study/yii-master/frontend/controllers/PageController.php:19 Stack trace: #0 [internal function]: frontend\controllers\PageController->actionIndex('') #1 /home/study/yii-master/vendor/yiisoft/yii2/base/InlineAction.php(55): call_user_func_array(Array, Array) #2 /home/study/yii-master/vendor/yiisoft/yii2/base/Controller.php(151): yii\base\InlineAction->runWithParams(Array) #3 /home/study/yii-master/vendor/yiisoft/yii2/base/Module.php(455): yii\base\Controller->runAction('index', Array) #4 /home/study/yii-master/vendor/yiisoft/yii2/web/Application.php(84): yii\base\Module->runAction('page/index', Array) #5 /home/study/yii-master/vendor/yiisoft/yii2/base/Application.php(375): yii\web\Application->handleRequest(Object(yii\web\Request)) #6 /home/study/yii-master/frontend/web/index.php(19): yii\base\Application->run() #7 {main}
@yidashi 我在windows下测试了最新数据库。
根据报错
Invalid Parameter – yii\base\InvalidParamExceptionThe view file does not exist: D:\phpStudy\WWW\yii-master\frontend\views\site\index.php
来看,应该是缺少views的映射关系(不知道这么用词准确不)?
frontend目录下没有views目录。 - littlerunner 回复了 littlerunner 的评论
因为不熟悉yii。所以我只好把所有log都打出来给您看了--!。我的环境是centos php7 nginx
在访问localhost/yii-master/frontend/web/index.php时的报错如下:An Error occurred while handling another error: yii\base\InvalidParamException: The view file does not exist: /home/study/yii-master/frontend/views/site/error.php in /home/study/yii-master/vendor/yiisoft/yii2/base/View.php:226 Stack trace: #0 /home/study/yii-master/vendor/yiisoft/yii2/base/View.php(149): yii\base\View->renderFile('/home/study/yii...', Array, Object(frontend\controllers\SiteController)) #1 /home/study/yii-master/vendor/yiisoft/yii2/base/Controller.php(371): yii\base\View->render('error', Array, Object(frontend\controllers\SiteController)) #2 /home/study/yii-master/vendor/yiisoft/yii2/web/ErrorAction.php(108): yii\base\Controller->render('error', Array) #3 [internal function]: yii\web\ErrorAction->run() #4 /home/study/yii-master/vendor/yiisoft/yii2/base/Action.php(92): call_user_func_array(Array, Array) #5 /home/study/yii-master/vendor/yiisoft/yii2/base/Controller.php(151): yii\base\Action->runWithParams(Array) #6 /home/study/yii-master/vendor/yiisoft/yii2/base/Module.php(455): yii\base\Controller->runAction('error', Array) #7 /home/study/yii-master/vendor/yiisoft/yii2/web/ErrorHandler.php(85): yii\base\Module->runAction('site/error') #8 /home/study/yii-master/vendor/yiisoft/yii2/base/ErrorHandler.php(109): yii\web\ErrorHandler->renderException(Object(yii\web\NotFoundHttpException)) #9 /home/study/yii-master/vendor/yiisoft/yii2/web/Application.php(98): yii\base\ErrorHandler->handleException(Object(yii\web\NotFoundHttpException)) #10 /home/study/yii-master/vendor/yiisoft/yii2/base/Application.php(375): yii\web\Application->handleRequest(Object(yii\web\Request)) #11 /home/study/yii-master/frontend/web/index.php(19): yii\base\Application->run() #12 {main} Previous exception: yii\web\NotFoundHttpException: 页面不存在 in /home/study/yii-master/frontend/controllers/PageController.php:19 Stack trace: #0 [internal function]: frontend\controllers\PageController->actionIndex('') #1 /home/study/yii-master/vendor/yiisoft/yii2/base/InlineAction.php(55): call_user_func_array(Array, Array) #2 /home/study/yii-master/vendor/yiisoft/yii2/base/Controller.php(151): yii\base\InlineAction->runWithParams(Array) #3 /home/study/yii-master/vendor/yiisoft/yii2/base/Module.php(455): yii\base\Controller->runAction('index', Array) #4 /home/study/yii-master/vendor/yiisoft/yii2/web/Application.php(84): yii\base\Module->runAction('page/index', Array) #5 /home/study/yii-master/vendor/yiisoft/yii2/base/Application.php(375): yii\web\Application->handleRequest(Object(yii\web\Request)) #6 /home/study/yii-master/frontend/web/index.php(19): yii\base\Application->run() #7 {main}
@yidashi
我在windows下测试了最新数据库。
根据报错
Invalid Parameter – yii\base\InvalidParamExceptionThe view file does not exist: D:\phpStudy\WWW\yii-master\frontend\views\site\index.php
来看,应该是缺少views的映射关系(不知道这么用词准确不)?
frontend目录下没有views目录。 - littlerunner 发表了说说谁写个系列教程出来。一步一步写cms
- littlerunner 2016-04-07 已签到连续签到2天,获得了10个金钱
- littlerunner 评论了源码 基于yii2的内容管理框架
因为不熟悉yii。所以我只好把所有log都打出来给您看了--!。我的环境是centos php7 nginx
在访问localhost/yii-master/frontend/web/index.php时的报错如下:An Error occurred while handling another error: yii\base\InvalidParamException: The view file does not exist: /home/study/yii-master/frontend/views/site/error.php in /home/study/yii-master/vendor/yiisoft/yii2/base/View.php:226 Stack trace: #0 /home/study/yii-master/vendor/yiisoft/yii2/base/View.php(149): yii\base\View->renderFile('/home/study/yii...', Array, Object(frontend\controllers\SiteController)) #1 /home/study/yii-master/vendor/yiisoft/yii2/base/Controller.php(371): yii\base\View->render('error', Array, Object(frontend\controllers\SiteController)) #2 /home/study/yii-master/vendor/yiisoft/yii2/web/ErrorAction.php(108): yii\base\Controller->render('error', Array) #3 [internal function]: yii\web\ErrorAction->run() #4 /home/study/yii-master/vendor/yiisoft/yii2/base/Action.php(92): call_user_func_array(Array, Array) #5 /home/study/yii-master/vendor/yiisoft/yii2/base/Controller.php(151): yii\base\Action->runWithParams(Array) #6 /home/study/yii-master/vendor/yiisoft/yii2/base/Module.php(455): yii\base\Controller->runAction('error', Array) #7 /home/study/yii-master/vendor/yiisoft/yii2/web/ErrorHandler.php(85): yii\base\Module->runAction('site/error') #8 /home/study/yii-master/vendor/yiisoft/yii2/base/ErrorHandler.php(109): yii\web\ErrorHandler->renderException(Object(yii\web\NotFoundHttpException)) #9 /home/study/yii-master/vendor/yiisoft/yii2/web/Application.php(98): yii\base\ErrorHandler->handleException(Object(yii\web\NotFoundHttpException)) #10 /home/study/yii-master/vendor/yiisoft/yii2/base/Application.php(375): yii\web\Application->handleRequest(Object(yii\web\Request)) #11 /home/study/yii-master/frontend/web/index.php(19): yii\base\Application->run() #12 {main} Previous exception: yii\web\NotFoundHttpException: 页面不存在 in /home/study/yii-master/frontend/controllers/PageController.php:19 Stack trace: #0 [internal function]: frontend\controllers\PageController->actionIndex('') #1 /home/study/yii-master/vendor/yiisoft/yii2/base/InlineAction.php(55): call_user_func_array(Array, Array) #2 /home/study/yii-master/vendor/yiisoft/yii2/base/Controller.php(151): yii\base\InlineAction->runWithParams(Array) #3 /home/study/yii-master/vendor/yiisoft/yii2/base/Module.php(455): yii\base\Controller->runAction('index', Array) #4 /home/study/yii-master/vendor/yiisoft/yii2/web/Application.php(84): yii\base\Module->runAction('page/index', Array) #5 /home/study/yii-master/vendor/yiisoft/yii2/base/Application.php(375): yii\web\Application->handleRequest(Object(yii\web\Request)) #6 /home/study/yii-master/frontend/web/index.php(19): yii\base\Application->run() #7 {main}