Disabling the Layout and the View in cakePHP

D

How Can We Help?

To disable the view and the layout in cakePHP set autoRender to false within the appropriate action in your controller

$this->autoRender = false;

To only disable the layout in cakePHP set the layout to false

$this->layout = false;

And to only disable the view for an action call the render method and set the parameter to false

$this->render(false);

About the author

Ian Carnaghan

I am a software developer and online educator who likes to keep up with all the latest in technology. I also manage cloud infrastructure, continuous monitoring, DevOps processes, security, and continuous integration and deployment.

About Author

Ian Carnaghan

I am a software developer and online educator who likes to keep up with all the latest in technology. I also manage cloud infrastructure, continuous monitoring, DevOps processes, security, and continuous integration and deployment.

Follow Me