【发布时间】:2016-07-13 09:00:38
【问题描述】:
目录结构:
Class ProductControl extends Controller{
readAction(){
}
}
因此,它将在目录Product 中显示电压视图:read.volt,但它仍然在根视图中包含index.volt。
如何不包含views/index.volt,而只包含views/product/read.volt?
【问题讨论】:
目录结构:
Class ProductControl extends Controller{
readAction(){
}
}
因此,它将在目录Product 中显示电压视图:read.volt,但它仍然在根视图中包含index.volt。
如何不包含views/index.volt,而只包含views/product/read.volt?
【问题讨论】:
$this->view->disableLevel(View::LEVEL_MAIN_LAYOUT); 在你的行动中
【讨论】: