Render Nothing in Zend Framework

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
  • Share/Bookmark

Related posts:

  1. Fix for Zend Studio 7 Button Problems in Ubuntu 9.10 “Karmic Koala”

Tags: , , , ,

One comment

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

Leave a comment