Answer the question
In order to leave comments, you need to log in
What does the error mean when running a YII2 template?
I decided to use the application template for YII2 advanced ( Here is the template ), but when I try to view the start page, an error occurs
Warning: require(C:\Users\AnarCom\Desktop\OSPanel\domains\yii2-core\frontend\web/../../vendor/autoload.php): failed to open stream: No such file or directory in C :\Users\AnarCom\Desktop\OSPanel\domains\yii2-core\frontend\web\index.php on line 7
Fatal error: require(): Failed opening required 'C:\Users\AnarCom\Desktop\OSPanel\domains\ yii2-core\frontend\web/../../vendor/autoload.php' (include_path='.;c:/users/anarcom/desktop/ospanel/modules/php/PHP-7.1;c:/users/ anarcom/desktop/ospanel/modules/php/PHP-7.1/PEAR/pear') in C:\Users\AnarCom\Desktop\OSPanel\domains\yii2-core\frontend\web\index.php on line 7
<?php
use yii\helpers\ArrayHelper;
use yii\web\Application;
// Composer
require __DIR__ . '/../../vendor/autoload.php';
// Environment
require __DIR__ . '/../../common/env.php';
// Yii2
require __DIR__ . '/../../vendor/yiisoft/yii2/Yii.php';
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question