按照老师写的做输入http://localhost/basic/web/index?r=hello/index之后显示404错误
补充,环境和YII均已经安装成功
<?php
namespace app\controllers;
use yii\web\Controller;
class HelloController extends Controller{
public function actionIndex(){ //操作必须是action开头,action后面才是操作的名字
$request=\YII::$app->request;
echo $request->get('id');
echo 'hello world';
}
}
?>