Re: [symfony-users] How does form widgets take default into account?

2010-03-04 Thread Susan Ditmore
Hey Aadaam, I tried doing this: $this-setDefault('startdate', date('Y-m-d')); and it works for me. Can you try it and see? Thanks, Susan On Sun, Feb 28, 2010 at 7:16 PM, Aadaam aad...@gmail.com wrote: Hi all, I now this is a silly question, but I simply can't set a date widget to a

[symfony-users] How does form widgets take default into account?

2010-03-01 Thread Aadaam
Hi all, I now this is a silly question, but I simply can't set a date widget to a default value, nor I am able to understand how it is supposed to work. What I tried: class SomeForm extends DoctrineForm { public function configure(){ $this-widgetSchema['startdate'] = new