1、在控制器内成员变量
public $layout = false;
public $layout = "main";
2、控制器成员方法内
$this->layout = false;
$this->layout = "main";
3、视图中选择布局
$this->context->layout = false;
$this->context->layout = 'main';
public $layout = false;
public $layout = "main";
2、控制器成员方法内
$this->layout = false;
$this->layout = "main";
3、视图中选择布局
$this->context->layout = false;
$this->context->layout = 'main';