In advance template there is already a file yii. And there is no need to run it as php, it is Linux script.
在高级模版中的 yii 文件,它是一个 Linux 脚本,不需要使用PHP来运行。
Create a controller in console/controllers
在 console/controllers 文件夹下创建一个控制器
I have created as TestController.php
我创建了一个名为 TestController.php 的文件
<?php