I am learning ZF2.0 beta. In ZF1 we can change layout on the fly in controller:
Zend_Layout::getMvcInstance()->setLayout(\'layoutname\');
public function someAction() { $layout = $this->layout(); $layout->setTemplate('layout/custom'); $viewModel = new ViewModel(); return $viewModel; }