// configuration for Yii 2 application
$yii2Config = require DIR . ‘/…/config/yii2/web.php’;
new yii\web\Application($yii2Config); // Do NOT call run(), yii2 app is only used as service locator
However, since Yii2 hasn’t been initialized, where is config/yii2/web.php supposed to be found?
I was thinking of using Yii 2 components as an intermediate step instead of migrating directly our Yii 1 application to Yii 2, and later on, to perform a full migrate. But although i follow the steps, i keep getting errors, and one of them, is the path of the
$yii2Config = require DIR . ‘/…/config/yii2/web.php’;
Thank you for the reply Alexander, ok, this seems somehow more clear now, but what does this config/web.php consist of? for example, in the yii1 installation you already have the basic config in the protected/config directory, but by just fetching yii2 through composer and not bootstraping the installation, you don’t have a yii2 config file in place to start editing.
Perhaps this is the part that i m missing!?