Issue when run Yii2.0 in windows.

Hi,

I am new in yii2 , in my office I work on Yii2.0 in ubuntu. And there is no issue at all. But when ever I copy my project any try run it in my windows system. It shows an fatal error…

And it indicates to the line below…

(new yii\web\Application($config))->run();

kindly give me resolution cause I am stuck in between some important thing…

Thank you in advance.

7366

error.PNG

When you get a general PHP error (not something related to Yii in particular), it’s usually a good idea to just search for the error message on google (or your favourite search engine).

I already mentioned the reason of the error…

(new yii\web\Application($config))->run(); -----this line…

So I am just asking the way to get rid of this…

You should google it with the following keywords:

And the following S.O. topic looks valid for your case.

http://stackoverflow.com/questions/13388541/php-parse-error-syntax-error-unexpected-t-object-operator

Check the version of your PHP.