Answer the question
In order to leave comments, you need to log in
How to run yiic in a project with a structure other than the default one?
Good afternoon!
There is a project in which Yii itself is installed via composer in the vendor folder. The structure looks like this:
../
/assets
/protected
// тут находятся файлы проекта
/vendor
/yiisoft
/yii
// тут находится ядро движка
// change the following paths if necessary
$yiic=dirname(__FILE__).'/../vendor/yiisoft/yii/framework/yiic.php';
$config=dirname(__FILE__).'/config/console.php';
require_once($yiic);
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