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