yii2报错

WBOY
Libérer: 2016-06-06 20:08:48
original
2199 Les gens l'ont consulté

报错

<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>
Copier après la connexion
Copier après la connexion

回复内容:

报错

<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>
Copier après la connexion
Copier après la connexion

Class appcomponentsView does not exist
错误很明显啊

Étiquettes associées:
source:php.cn
Déclaration de ce site Web
Le contenu de cet article est volontairement contribué par les internautes et les droits d'auteur appartiennent à l'auteur original. Ce site n'assume aucune responsabilité légale correspondante. Si vous trouvez un contenu suspecté de plagiat ou de contrefaçon, veuillez contacter admin@php.cn
Tutoriels populaires
Plus>
Derniers téléchargements
Plus>
effets Web
Code source du site Web
Matériel du site Web
Modèle frontal