I have one project in Yii 1, but i wan't develop some features in other framework, i choose Symfony.
The startpoint of website is a index.php from Yii1, but I build a selector by route to start one project in Yii1 or another proyect Symfony.
But when I include web/app.php i have this error:
Parse error: syntax error, unexpected 'class' (T_CLASS), expecting identifier (T_STRING) or variable (T_VARIABLE) or '{' or '$' in /vagrant/planetahuerto/vendor/symfony/symfony/src/Symfony/Component/HttpKernel/Bundle/Bundle.php on line 224
I use this code to load symfony project:
<?php
chdir("../planetahuerto/web/");
require 'app.php';
exit;
But i don't know why Kernel Bundle didn't throw this error.
Thx.