Hi @itrengarfio you can get the module name from partial or template with $sf_context->getModuleName()
or even if you want get the route name $sf_context->getInstance()->getRouting()->getCurrentRouteName(); bye Lukas. On Dec 17, 7:22 am, Gareth McCumskey <gmccums...@gmail.com> wrote: > Not exactly sure what you are asking but if you are using a partial in more > than one module, instead of storing the partial in: > > modules/module_name/templates > > you can store the partial in: > > modules/templates > > Then whenever you want to render the partial in your action you use: > > return $this->renderPartial('global/partialName', array([variables you want > to pass])); > > or for the view: > > include_partial('global/partialName', array([variables you want to pass])); > > Hope that helps :) > > ----- Original Message ----- > From: "tirengarfio" <tirengar...@gmail.com> > To: "symfony users" <symfony-users@googlegroups.com> > Sent: Thursday, December 17, 2009 11:24:59 AM GMT +02:00 Harare / Pretoria > Subject: [symfony-users] Short question about partial elements and getting > the name of a module > > Hi, > > im using a partial element for two templates of two different modules. > > The partial element is stored in the "templates" folder of the first > module, so is there any way to get from the partial element the name > of the second module? > > Bye > > Javi > > -- > > You received this message because you are subscribed to the Google Groups > "symfony users" group. > To post to this group, send email to symfony-us...@googlegroups.com. > To unsubscribe from this group, send email to > symfony-users+unsubscr...@googlegroups.com. > For more options, visit this group > athttp://groups.google.com/group/symfony-users?hl=en. -- You received this message because you are subscribed to the Google Groups "symfony users" group. To post to this group, send email to symfony-us...@googlegroups.com. To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en.