转向首页
$this->redirect(['site/index'])
$this->gohome();
返回 上一层
$this->goBack();
刷新
$this->refresh();
显示index视图
return $this->render('index', ['data' => [1,2,3]])
不显示全部layout,只显示content
return $this->renderPartial('index', ['data' => [1,2,3]])
转载于:https://blog.51cto.com/3154408/1977172