Rendering views just got a whole lot easier with the Zend framework 😉 If don’t yet have a front controller instance:
$viewRenderer = new Zend_Controller_Action_Helper_ViewRenderer($view);
or if you do:
$viewRenderer = Zend_Controller_Action_HelperBroker::getExistingHelper('viewRenderer');
Okay, maybe it’s not that easy. Let’s look at how the $viewRenderer object is instantiated, using the Zend_Controller_Action_Helper_ViewRenderer class. Using the PEAR naming convention has proven its worth beyond the point of contest, but how many related concepts are inferred by this class name?