how to disabled zend framework view in controller

Jun 9, 2011   //   by kdecom   //   ZEND FRAMEWORK  //  No Comments
Hi,

I was working on zend framework project and i wanted to just disable the view because of ajax request so i was looking on the net how to disabled the view to render and finally i got the ans.
All you need to do is

public function indexAction() {

$this->_helper->viewRenderer->setNoRender(true);
echo “Ajax request”;

}

Keep Smiling

Leave a comment

css.php