yii2报错

WBOY
WBOY原創
2016-06-06 20:08:482194瀏覽

报错

<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
错误很明显啊

陳述:
本文內容由網友自願投稿,版權歸原作者所有。本站不承擔相應的法律責任。如發現涉嫌抄襲或侵權的內容,請聯絡admin@php.cn