Ganesh Babu
Ganesh Babu

Reputation: 3670

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?

Upvotes: 0

Views: 147

Answers (1)

Sudhir Bastakoti
Sudhir Bastakoti

Reputation: 100175

you could do:

$this->layout = false;

Upvotes: 2

Related Questions