What is View Rendering in Zend Framework and how to use it ?

View Rendering is a technique which provide us to  Access Another View Script functionality  .  it can be use when we write common logic that would use for different Controller

Step 1. first Add Path of that file which you want to use in your controller.         like this

$this->view->addScriptPath(realpath(dirname(__FILE__).DIRECTORY_SEPARATOR.”..//../application”.DIRECTORY_SEPARATOR.”views”.DIRECTORY_SEPARATOR.”demo”.DIRECTORY_SEPARATOR));

Step 2 . After Adding the script Path Set your file name in setRender function for Rendering like this

$this->_helper->viewRenderer->setRender(‘demodata’,’html’,true);

that’s it now you can use any view script file for your controller

Note:- I have used “demo”   in Addscript and “demodata” in setRneder for only reference you have to use your own .