| [SOLVED] Setting widget default options in BaseFormPropel [message #64545] |
Tue, 04 November 2008 18:35  |
annis Messages: 18 Registered: September 2008 Location: Germany |
Junior Member |
|
|
Hey all,
in the new forms book there is little snippet I'd like to use ( http://www.symfony-project.org/book/forms/1_1/en/04-Propel-I ntegration#Generating%20Form%20Classes, a little further down on "Global Customization of Propel Forms"). It says there that all base form classes inherit from this uber-base form. An example is given on how to change the default form formatter name - this is accessed via a static method.
Now, my question is: how do I setup default options for a certain widget? Take for example the format and months options of sfWidgetFormDate. I have at least 4 forms that need this in the same format and need the months not as numbers but as 'January' etc.
I can't call the setOption method as it's not a static method, so is this even possible?
On the other hand: why have this base class at all, then?
Cheers, Daniel
[Updated on: Thu, 06 November 2008 23:17]
|
|
|
|
|
|
| Re: Setting widget default options in BaseFormPropel [message #64712 is a reply to message #64711 ] |
Thu, 06 November 2008 23:18  |
barros Messages: 12 Registered: June 2008 |
Junior Member |
|
|
Oh, yes, I didn't notice this.
Thanks
Carlos
|
|
|