Answer the question
In order to leave comments, you need to log in
How to run php yii requirements.php command?
For some reason, the php yii requirements.php command is not executed. Gives an error: Error: Unknown command "requirements.php".
Created a file test.php with the content:
<?php
echo "Hello";
Answer the question
In order to leave comments, you need to log in
Everything doesn't work right. requirements.php is a file, not a command.
Make a console controller, it contains an action and there is already code
namespace app\commands;
use yii\console\Controller;
class HelloController extends Controller
{
public function actionMyaction()
{
echo 'hello';
}
}
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question