Friday, April 24, 2009

Is there a no render option for the view in Zend?

Now this is tricky, if your controller/action is made to server as ajax call, or in case if you do need to show any template for that action. You can do it very easily:

$this->getHelper('viewRenderer')->setNoRender();

In this case you don't need any corresponding phtml file to put in the view folder.

No comments: