Setting Up a Specific Layout for a Zend Action

Now that’s really simple! In your action method simply add this line:

$this->view->layout()->setLayout('embed');

Thus the code will look like so:

<?php
 
class IndexController extends Zend_Controller_Action
{
	public function indexAction()
	{
		$this->view->layout()->setLayout('embed');
		// ...	
	}	
}

Leave a Reply

Your email address will not be published. Required fields are marked *