Closed leandrok closed 9 years ago
Hello, not noticed your posts.
Creating an application is not different from what is written in the official documentation: Yii2, Yii
The path to config depends on your application. I my case, I load old application as composer dependency, and my entry file looks like this
$v1AppConfig = $rootPath . '/vendor/my_company/my_old_application/frontend/config/main.php';
$gaffer = Yii::createWebApplication($v1AppConfig);
$v2AppConfig = $rootPath . '/frontend/config/main.php';
$application = new yii\web\Application($v2AppConfig);
$application->run();
@slavcodev Thank you very much!
Hi! First of all, congratulations for your work. We are migrating a big Yii 1 application to Yii 2 and we want do that progressively, and yii-bridge is exactly what we need. I installed yii-bridge via composer, but trying to configure our index.php files I noted that the sample described in the readme (https://github.com/slavcodev/yii-bridge) mention some variables like $v1AppConfig and $v2AppConfig which are not defined there. Can you please provide a sample of how we should load that config (specially the Yii 1 config from a Yii 2 app). Thank you!