简体   繁体   English

Phalcon Volt禁用特定视图

[英]Phalcon Volt disable specific view

Directory Structure : 目录结构:

目录结构

Class ProductControl extends Controller{
   readAction(){ 
   }
}

So, it will be show the volt view in Directory Product : read.volt , but it still include index.volt in root View. 因此,它将显示目录Product的伏特视图: read.volt ,但它仍然包含在根视图中的index.volt

How can i not include the views/ index.volt , but only include views/product/ read.volt ? 我怎么能不包括views / index.volt ,但只包括views / product / read.volt

$this->view->disableLevel(View::LEVEL_MAIN_LAYOUT); in your action 在你的行动中

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM