How to Call view file using action function in Zend Framework

 

Generally in zend framework,we can call file using render function,but in render function we can not pass parameter.we can use action function to call file with paramater.

here you can find example that how can we call any file with action function in zend framework.you have to  write this file in view file.

echo $this->action(‘listing’, ‘index’,null,array(‘model’=>’abc’,’listing_id’=>111));

here in example,

listing = controller name

index = controller action name

model and listing_id = paramater name with value