I’m working on a project using Zend Framework and required to disable view renderer for a controller. This can be done by  the following calls to the controller’s by the following  method:

public function foo()
{
   $this->_helper->layout()->disableLayout();
   $this->_helper->viewRenderer->setNoRender(true);
}

note: function can be public, protected or private

Tagged with:  

1 Response » to “Disable view renderer in Zend Framework”

Leave a Reply

WordPress Themes

Looking for something?

Use the form below to search the site:

Still not finding what you're looking for? Drop a comment on a post or contact us so we can take care of it!

Visit our friends!

A few highly recommended friends...