> That is half way possible. sfGenerator used to have an attribute > "theme" which was there from the very beginning of symfony. > So the generator itself can take different themes into account when > generating what ever you need generated today, but most of the cli > tasks dont take a theme option they could pass to the generator. > So most of the time the generator only uses one single theme the > "default" theme. > I dont think custom generators are needed since the one generator can > use custom themes of that option would be available in tasks (would be > easy to patch the option into all tasks using sfGenerator).
I thought the themes applied to the admin generator, I am talking about the form and filter generators. Right now, I use custom form and filter generators to change the default type of widgets generated for certain fields types, but I can only do it by only do it by modifying Symfony's code where the generator class is hard coded. For example, I want all my number filters to filter on a range of values instead of exact values, I know I can override it in each form class, but why would I do the same thing hundreds of times when I can do it once for all by just overriding a method in the generator class. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "symfony developers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/symfony-devs?hl=en -~----------~----~----~----~------~----~------~--~---
