I want to render a different
view in my action
, pass data from action to that view and get its output in a variable.
I know that
$output = $this->view->render('path/to/script');
render different view script and returns output. But I also want to pass data to this script from my action but not succeeded so far. I have used
$this->view->data = $data
But it doesn't send data to this script.
Can any one guide how can I do it?