APPLY FOR ONLINE Zend Framework Certification

                    
                        In Zend Framework 1, if you want to change the layout just for one action
or for every action in a controller How do you do it without overriding the 
layout for every action throughout the entire application?


 Within controller
$this->_helper->_layout->setLayout('other-layout') //other-layout.phtml

Within view script
$this->layout()->setLayout('other-layout'); 
                    
                


Comment


Back to Top