> I am using smarty with my ZF projects but using the old (pre-zf.sh
> tool) structure.  In my index.php I have the following code
> 
> $viewRenderer = new Zend_Controller_Action_Helper_ViewRenderer();
> $viewRenderer->setView(new Naneau_View_Smarty(
>                            array('compileDir' => $smarty['compile_dir'])
>                            )
>                        );
> $viewRenderer->setViewSuffix('tpl');
> 
> Zend_Controller_Action_HelperBroker::addHelper($viewRenderer);
> 
> $front = Zend_Controller_Front::getInstance();
> $front->addModuleDirectory('../application/');
> $front->dispatch();
> 
> What would be the correct way to do it in the new index.php (or the
> Bootstrap.php?) generated by the zf.sh?

That's at least two - if not three - years old. 

Check the Zend Framework website and the tutorials you find there. 


Andreas

-- 
List: [email protected]
Info: http://framework.zend.com/archives
Unsubscribe: [email protected]


Reply via email to