How to make a console call in Yii2 ? Lord, please tell
- installed the YII2 basic framework on OpenServer , I see a test site (mysite.local)
- open CMD, go to the URL of my site (c: \ My \ OpenServer \ OpenServer \ domains \ mysite.local> _)
I enter
yii <hello> [-m=hello]getting
Cannot find the specified file.
As usual, the problem of discovering a new one. Tell me how to make a console appeal in Yii2 ?
UPD
at php yii I get on
Parse error: syntax error, unexpected '[' in C:\My\OpenServer\OpenServer\domains\mysite.local\vendor\guzzlehttp\psr7\src\functions.php on line 78 I enter the command eats, but without brackets
yii <hello> [-m=hello]with all the brackets? Because it is necessary without them ... Are you in theconsolefolder createdHelloController? what is written in it? - Alexey Shimanskyпри php yii попадаю на Parse error: syntax error, unexpected '['- PHP version should be> = 5.4 - Alexey ShimanskyYii::getVersion();- Alexey Shimansky