Zend Framework: Disable Layout


/ Published in: PHP
Save to your folder(s)



Copy this code and paste it in your HTML
  1. // SomeController.php
  2. // within someAction()
  3. $noLayout = $this->getRequest()->getParam("noLayout");
  4. if ($noLayout) {
  5. $this->_helper->layout->disableLayout();
  6. }

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.