On Mar 9, 12:00 pm, CyrilQ cyril.quin...@gmail.com wrote:
Hello, i was surprised when reading that setDefault does not exist in
symfony 1.1.
I downloaded it and you are right, there is no setDefault on
sfWidgetSchema class, but i found one in sfForm :
/**
* Sets a default value for
On Mar 9, 12:00 pm, CyrilQ cyril.quin...@gmail.com wrote:
Hello, i was surprised when reading that setDefault does not exist in
symfony 1.1.
I downloaded it and you are right, there is no setDefault on
sfWidgetSchema class, but i found one in sfForm :
/**
* Sets a default value for
Hello, i was surprised when reading that setDefault does not exist in
symfony 1.1.
I downloaded it and you are right, there is no setDefault on
sfWidgetSchema class, but i found one in sfForm :
/**
* Sets a default value for a form field.
*
* @param string $nameThe field name
*
On Mar 6, 7:16 am, Lawrence Krubner lkrub...@geocities.com wrote:
I've tried this:
$this-widgetSchema['date'] = new sfWidgetFormInputHidden();
$this-widgetSchema['date']-setDefault(date(Y-m-d h:m:i));
but I get this error:
Fatal error: Call to undefined method
Look at this example:
$this-setWidget('referer', new sfWidgetFormInputHidden());
$this-setDefault('referer',
sfContext::getInstance()-getRequest()-getReferer());
Cheers, Alan Gabriel Bem
On Fri, Mar 6, 2009 at 1:16 PM, Lawrence Krubner lkrub...@geocities.comwrote:
I've tried this:
On Mar 6, 7:39 am, Alan Bem alan@gmail.com wrote:
Look at this example:
$this-setWidget('referer', new sfWidgetFormInputHidden());
$this-setDefault('referer',
sfContext::getInstance()-getRequest()-getReferer());
Thanks. What is the URL for this example? I'd like to see more
On Mar 6, 7:39 am, Alan Bem alan@gmail.com wrote:
Look at this example:
$this-setWidget('referer', new sfWidgetFormInputHidden());
$this-setDefault('referer',
sfContext::getInstance()-getRequest()-getReferer());
Sorry, but that doesn't work. The setDefault method is only
available