In ZF1 I can do something like this:
$view = new Zend_View();
$view->setScriptPath($viewDir);
$html = $view->render('template_name.phtml');
How can I do that in ZF2?
In ZF1 I can do something like this:
$view = new Zend_View();
$view->setScriptPath($viewDir);
$html = $view->render('template_name.phtml');
How can I do that in ZF2?
Thanks to akrabat for covering almost every scenario.