Layout ### yii2 the selected mode, the layout can be provided without using
Member variables in the controller
public $layout = false; //不使用布局
public $layout = "main"; //设置使用的布局文件
Method within the controller members
$this->layout = false; //不使用布局
$this->layout = "main"; //设置使用的布局文件
Choose a layout view
$this->context->layout = false; //不使用布局
$this->context->layout = 'main'; //设置使用的布局文件