yii2报错

WBOY
풀어 주다: 2016-06-06 20:08:48
원래의
2200명이 탐색했습니다.

报错

<code>An Error occurred while handling another error:
exception 'ReflectionException' with message 'Class app\components\View does not exist' in /home/wwwroot/xxxxxx/vendor/yiisoft/yii2/di/Container.php:417
Stack trace:
#0 /home/wwwroot/xxxxxx/vendor/yiisoft/yii2/di/Container.php(417): ReflectionClass->__construct('app\components\...')
#1 /home/wwwroot/xxxxxx/vendor/yiisoft/yii2/di/Container.php(360): yii\di\Container->getDependencies('app\components\...')
#2 /home/wwwroot/xxxxxx/vendor/yiisoft/yii2/di/Container.php(153): yii\di\Container->build('app\components\...', Array, Array)
#3 /home/wwwroot/xxxxxx/vendor/yiisoft/yii2/BaseYii.php(344): yii\di\Container->get('app\components\...', Array, Array)
#4 /home/wwwroot/xxxxxx/vendor/yiisoft/yii2/di/ServiceLocator.php(133): yii\BaseYii::createObject(Array)
#5 /home/wwwroot/xxxxxx/vendor/yiisoft/yii2/base/Application.php(554): yii\di\ServiceLocator->get('view')
#6 /home/wwwroot/xxxxxx/vendor/yiisoft/yii2/web/ErrorHandler.php(241): yii\base\Application->getView()
#7 /home/wwwroot/xxxxxx/vendor/yiisoft/yii2/web/ErrorHandler.php(112): yii\web\ErrorHandler->renderFile('@yii/views/erro...', Array)
#8 /home/wwwroot/xxxxxx/vendor/yiisoft/yii2/base/ErrorHandler.php(109): yii\web\ErrorHandler->renderException(Object(ReflectionException))
#9 [internal function]: yii\base\ErrorHandler->handleException(Object(ReflectionException))
#10 {main}
Previous exception:
exception 'ReflectionException' with message 'Class app\components\View does not exist' in /home/wwwroot/xxxxxx/vendor/yiisoft/yii2/di/Container.php:417
Stack trace:
#0 /home/wwwroot/xxxxxx/vendor/yiisoft/yii2/di/Container.php(417): ReflectionClass->__construct('app\components\...')
#1 /home/wwwroot/xxxxxx/vendor/yiisoft/yii2/di/Container.php(360): yii\di\Container->getDependencies('app\components\...')
#2 /home/wwwroot/xxxxxx/vendor/yiisoft/yii2/di/Container.php(153): yii\di\Container->build('app\components\...', Array, Array)
#3 /home/wwwroot/xxxxxx/vendor/yiisoft/yii2/BaseYii.php(344): yii\di\Container->get('app\components\...', Array, Array)
#4 /home/wwwroot/xxxxxx/vendor/yiisoft/yii2/di/ServiceLocator.php(133): yii\BaseYii::createObject(Array)
#5 /home/wwwroot/xxxxxx/vendor/yiisoft/yii2/base/Application.php(554): yii\di\ServiceLocator->get('view')
#6 /home/wwwroot/xxxxxx/vendor/yiisoft/yii2-debug/Module.php(145): yii\base\Application->getView()
#7 [internal function]: yii\debug\Module->yii\debug\{closure}(Object(yii\base\Event))
#8 /home/wwwroot/xxxxxx/vendor/yiisoft/yii2/base/Component.php(541): call_user_func(Object(Closure), Object(yii\base\Event))
#9 /home/wwwroot/xxxxxx/vendor/yiisoft/yii2/base/Application.php(372): yii\base\Component->trigger('beforeRequest')
#10 /home/wwwroot/xxxxxx/web/index.php(12): yii\base\Application->run()
#11 {main}</code>
로그인 후 복사
로그인 후 복사

回复内容:

报错

<code>An Error occurred while handling another error:
exception 'ReflectionException' with message 'Class app\components\View does not exist' in /home/wwwroot/xxxxxx/vendor/yiisoft/yii2/di/Container.php:417
Stack trace:
#0 /home/wwwroot/xxxxxx/vendor/yiisoft/yii2/di/Container.php(417): ReflectionClass->__construct('app\components\...')
#1 /home/wwwroot/xxxxxx/vendor/yiisoft/yii2/di/Container.php(360): yii\di\Container->getDependencies('app\components\...')
#2 /home/wwwroot/xxxxxx/vendor/yiisoft/yii2/di/Container.php(153): yii\di\Container->build('app\components\...', Array, Array)
#3 /home/wwwroot/xxxxxx/vendor/yiisoft/yii2/BaseYii.php(344): yii\di\Container->get('app\components\...', Array, Array)
#4 /home/wwwroot/xxxxxx/vendor/yiisoft/yii2/di/ServiceLocator.php(133): yii\BaseYii::createObject(Array)
#5 /home/wwwroot/xxxxxx/vendor/yiisoft/yii2/base/Application.php(554): yii\di\ServiceLocator->get('view')
#6 /home/wwwroot/xxxxxx/vendor/yiisoft/yii2/web/ErrorHandler.php(241): yii\base\Application->getView()
#7 /home/wwwroot/xxxxxx/vendor/yiisoft/yii2/web/ErrorHandler.php(112): yii\web\ErrorHandler->renderFile('@yii/views/erro...', Array)
#8 /home/wwwroot/xxxxxx/vendor/yiisoft/yii2/base/ErrorHandler.php(109): yii\web\ErrorHandler->renderException(Object(ReflectionException))
#9 [internal function]: yii\base\ErrorHandler->handleException(Object(ReflectionException))
#10 {main}
Previous exception:
exception 'ReflectionException' with message 'Class app\components\View does not exist' in /home/wwwroot/xxxxxx/vendor/yiisoft/yii2/di/Container.php:417
Stack trace:
#0 /home/wwwroot/xxxxxx/vendor/yiisoft/yii2/di/Container.php(417): ReflectionClass->__construct('app\components\...')
#1 /home/wwwroot/xxxxxx/vendor/yiisoft/yii2/di/Container.php(360): yii\di\Container->getDependencies('app\components\...')
#2 /home/wwwroot/xxxxxx/vendor/yiisoft/yii2/di/Container.php(153): yii\di\Container->build('app\components\...', Array, Array)
#3 /home/wwwroot/xxxxxx/vendor/yiisoft/yii2/BaseYii.php(344): yii\di\Container->get('app\components\...', Array, Array)
#4 /home/wwwroot/xxxxxx/vendor/yiisoft/yii2/di/ServiceLocator.php(133): yii\BaseYii::createObject(Array)
#5 /home/wwwroot/xxxxxx/vendor/yiisoft/yii2/base/Application.php(554): yii\di\ServiceLocator->get('view')
#6 /home/wwwroot/xxxxxx/vendor/yiisoft/yii2-debug/Module.php(145): yii\base\Application->getView()
#7 [internal function]: yii\debug\Module->yii\debug\{closure}(Object(yii\base\Event))
#8 /home/wwwroot/xxxxxx/vendor/yiisoft/yii2/base/Component.php(541): call_user_func(Object(Closure), Object(yii\base\Event))
#9 /home/wwwroot/xxxxxx/vendor/yiisoft/yii2/base/Application.php(372): yii\base\Component->trigger('beforeRequest')
#10 /home/wwwroot/xxxxxx/web/index.php(12): yii\base\Application->run()
#11 {main}</code>
로그인 후 복사
로그인 후 복사

Class appcomponentsView does not exist
错误很明显啊

관련 라벨:
원천:php.cn
본 웹사이트의 성명
본 글의 내용은 네티즌들의 자발적인 기여로 작성되었으며, 저작권은 원저작자에게 있습니다. 본 사이트는 이에 상응하는 법적 책임을 지지 않습니다. 표절이나 침해가 의심되는 콘텐츠를 발견한 경우 admin@php.cn으로 문의하세요.
인기 튜토리얼
더>
최신 다운로드
더>
웹 효과
웹사이트 소스 코드
웹사이트 자료
프론트엔드 템플릿