简体   繁体   中英

How to ignore layout in CakePHP

Can we ignore the use of layout in CakePHP? Normally, default layout gets worked or we can specify ourself like

$this->layout='userdefined';

But,now I need no layout to be applied in a page and which means I want that page to be completely blank. It should process only data what we are sending there. Is it possible? If so, what is the way?

你可以这样做:

$this->layout = false;

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