Nicolas: the component is coming from a plugin, if i'm not wrong; so if you want to use the same component in different modules ( more then once in a project ), you have to do these stuffs for each module in part. this isn't DRY. is it possible somehow to specify in admin generator, the component from a plugin?
On Jul 11, 10:06 am, "Nicolas Perriault" <[EMAIL PROTECTED]> wrote: > On Thu, Jul 10, 2008 at 10:58 PM, Jonathan Franks <[EMAIL PROTECTED]> wrote: > > I just realized that I can use include/get_component outside of the > > template files. > > Yes, but you're handling view generation within the model, that's not > strictly MVC. I'd rather use the component inclusion in the display > section of thegenerator.yml: > > edit: > display: [ ~photos ] # notice the "~" to include a component > fields: > photos: { type: plain } > > Then create a _photos.php partial (and its related executePhotos() > method in components.class.php) and you're done. > > ++ > > -- > Nicolas > Perriaulthttp://prendreuncafe.com-http://symfonians.net-http://sensiolabs.com > Phone: +33 660 92 08 67 --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "symfony users" group. To post to this group, send email to symfony-users@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en -~----------~----~----~----~------~----~------~--~---