Online Forum To Support Coders With Technical Assistance - Read Write Execute

How to call a view without header/footer in cakephp

Ankit Agrawal
Ankit Agrawal
Published on July 27, 2015 · 1 min read

you can set a blank or null layout for view which you want to display without header footer.


<?php
class YoursController extends AppController {
	
	public function viewname()
	{
		$this->layout = null;
	}
}

Was this article helpful?
Ankit Agrawal

Ankit Agrawal

Author & Senior Engineer at CodeExecute

Writing practical engineering guides, debugging real-world bottlenecks, and creating free tools for developer productivity.

← Previous Article How to submit a form on a tag click Next Article → How to remove php extension from url