Hi José, I'd do that task in a controller plugin's PreDispatch method. Routing information is present at that point.
Best regards Tobias 2008/9/22 José de Menezes Soares Neto <[EMAIL PROTECTED]> > Hi friends, > > I use ZF with Smarty for my apps. > > But, now, I would like to use modules too. > > My problem is that my compilation dir and template dir are fixed at > Smarty...and I would like to set it for each module I create, like: > > application > > -----admin > ----------controllers > ----------models > ----------templates > ----------templates_c > -----default > ----------controllers > ----------models > ----------templates > ----------templates_c > > But I don't know how to change these two lines dynamically: > > $this->_smarty->template_dir = $path.'application/views/'; > $this->_smarty->compile_dir = $path.'application/views_c/'; > > The correct would be: > > $this->_smarty->template_dir = $path.'application/module/views/'; > $this->_smarty->compile_dir = $path.'application/module/views_c/'; > > Suggestions? > > >
