HI
I have the following code:
Now with the new startMvc enabled my test page simply renders nothing -
with this disabled then I get the correct test view rendering in the
browser.
anyone see anything wrong with what I am doing.
// {{{ createView()
/**
* Method to create the View instance and register any options /
paths etc
*
* @return array $view
*/
private function createView()
{
// Create the View object
$view = new Zend_View();
// Add the Global Helpers Path to the View object
$view->addHelperPath('library/library/Helpers',
'Library_Helpers_');
// Loop through any required Helper paths needed from the config.
if ($this->config->helperPaths) {
foreach ($this->config->helperPaths as $k => $v) {
$view->addHelperPath($v, 'Library_Helpers_' . $k . '_');
}
}
Zend_Controller_Action_HelperBroker::getStaticHelper('viewRenderer')->setView($view);
// Start the Layout
Zend_Layout::startMvc(array(
'layoutPath' => 'sites/blah/helpers/layouts',
'layout' => 'main'
));
}
// }}}