1:在控制器内成员变量设置
public $layout = false; //不使用布局
public $layout = “main”; //设置使用的布局文件

2:在控制器成员方法内设置
$this->layout = false; //不使用布局
$this->layout = “main”; //设置使用的布局文件

3:在视图views中选择布局设置
$this->context->layout = false; //不使用布局
$this->context->layout = ‘main’; //设置使用的布局文件

相关文章:

  • 2022-03-01
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-01-01
  • 2022-01-24
猜你喜欢
  • 2021-07-11
  • 2021-12-05
  • 2022-12-23
  • 2021-11-29
  • 2022-12-23
  • 2022-12-23
  • 2021-07-21
相关资源
相似解决方案