lautr.com

Hannes Blog for Development and Stuff besides

Disable view and layout for zend framework

| 1 Kommentar

Disable view and layout for a controller (you can also place it in any other location, a action for example)

class IndexController extends Zend_Controller_Action
{
    public function init()
    {
        // Disable render helper and zend Layout
        $this->_helper->viewRenderer->setNoRender();
        $this->_helper->layout()->disableLayout();
    }
}

Autor: Hannes

Hi! I’m Johannes Lauter a 26 year old Web Application Developer based in Berlin ... more

Ein Kommentar

  1. Thanks for this little sample. As most people who view this article I was looking for something to disable the render and lay out, this did the trick perfectly.

    Cheers,

    Roy T.

Hinterlasse eine Antwort

Pflichtfelder sind mit * markiert.

*