public function actionIndex()
{
$this->layout='@app/views/layouts/main2.php';
return $this->render('index');
}
参考:http://www.tuicool.com/articles/BrY7Vf7
Yii2 布局模板
最新推荐文章于 2018-08-17 11:43:34 发布
public function actionIndex()
{
$this->layout='@app/views/layouts/main2.php';
return $this->render('index');
}
参考:http://www.tuicool.com/articles/BrY7Vf7