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 wrote:
> Hi all,
>
> I now this is a silly question, but I simply can't set a date widget
> to a default value,
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 sfWidgetFor