This is useful if u want to have the output without rendering a view or the layout, like in ajax or developing we services
to do that you need to call the following 2 methods in your Action :
$this->_helper->viewRenderer->setNoRender(); // Disable the viewscript $this->_helper->layout->disableLayout(); // Disable the layout
Related posts:
Tags: layout, PHP, viewscript, zend framework, zf


Or you can exit() right after echoing the data, maybe not perfect but sometimes useful and quite fast…
[Translate]