简体   繁体   中英

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.

How can i not include the views/ index.volt , but only include views/product/ read.volt ?

$this->view->disableLevel(View::LEVEL_MAIN_LAYOUT); in your action

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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