Заливаю на сервер и получаю вот такую ошибку:
Момент в том, что у меня 2 приложения (девеломпент и продакшин), разница в конфигурации базы и кеша. Все изменения я сливаю на девелопмент проверяю что действительно все работает и обновляю продакшин.An exception has been thrown during the rendering of a template ("Class cache does not exist") in "index.twig" at line 8.
В девелопмент приложении я выключил кеш:
Код: Выделить всё
'components' => [
/*'cache' => [
'class' => 'yii\caching\FileCache',
'cachePath' => '@root/common/cache',
'keyPrefix' => 'ch7-'
],*/
Код: Выделить всё
'view' => [
'theme' => [
'pathMap' => [
'@app/views' => '@app/themes/basic',
'@app/modules' => '@app/themes/basic/modules',
],
'baseUrl' => '@web/themes/basic',
],
'renderers' => [
'layout' => '@app/themes/basic/layouts/main.twig',
'twig' => [
'class' => 'yii\twig\ViewRenderer',
'cachePath' => '@runtime/Twig/cache',
'options' => [
'cache' => false
],
'globals' => [
'html' => '\yii\helpers\Html',
'pos_begin' => \yii\web\View::POS_BEGIN,
],
'functions' => [
't' => '\Yii::t',
'json_encode' => '\yii\helpers\Json::encode',
'dump' => '\yii\helpers\BaseVarDumper::dump',
],
],
],
],
По поводу настроек:
error_reporting E_ALL
display_error On
что на сервере, что на локалке.
Подскажите что делать, куда копать ?