So in short, if i remove the lines in my bootstrap it won't affect anything? If so, then I can't wait to get home and try it.
wizhippo wrote: > > Zend_Layout is in the core for 1.5RC1 along with it's viewhelpers. > > So you would not need to include the incubator path to support it anymore. > > > > wenbert wrote: >> >> In comment #43 and #44 >> http://akrabat.com/2007/12/11/simple-zend_layout-example/#comments >> >> Rob says that: >> $view->addHelperPath('path/to/incubator/library/Zend/View/Helper/'); >> is unnecessary for the 1.5 RC1. what does he mean by that? >> >> in my bootstrap, i have something like this: >> ------------------------------------------------- >> // setup layouts >> Zend_Layout::startMvc(array('layoutPath' => >> '../application/views/layouts')); >> >> // setup plugins >> require_once 'Ekini/Controller/Plugin/CheckHasAccess.php'; >> $frontController = Zend_Controller_Front::getInstance(); >> $frontController->registerPlugin(new >> Ekini_Controller_Plugin_CheckHasAccess()); >> >> // setup view helpers >> $view = new Zend_View(); >> $view->addHelperPath('../application/views/helpers', 'My_View_Helper'); >> $viewRenderer = new Zend_Controller_Action_Helper_ViewRenderer(); >> $viewRenderer->setView($view); >> >> //make view renderer use the view we just configured >> Zend_Controller_Action_HelperBroker::addHelper($viewRenderer); >> >> //setup action helpers >> Zend_Controller_Action_HelperBroker::addPrefix('Ekini_Controller_Action_Helper'); >> >> >> // setup controller >> //Zend_Controller_Front::run('../application/controllers'); >> // Run! >> $frontController = Zend_Controller_Front::getInstance(); >> $frontController->addControllerDirectory('../application/controllers'); >> $frontController->throwExceptions(true); >> try { >> $frontController->dispatch(); >> } catch(Exception $e) { >> echo nl2br($e->__toString()); >> } >> ------------------------------------------------- >> What would I change it to? >> >> Thanks, >> wenbert >> > > -- View this message in context: http://www.nabble.com/%24view-%3EaddHelperPath%28%29-unnecessary-in-ZF-1.5-RC1----tp15950672s16154p15950794.html Sent from the Zend Framework mailing list archive at Nabble.com.
