I was expecting that the configure method in the new 1.1 Forms would
merge the options and attributes from the ones passed in the
arguments.
To my surprise, the sfWidgetForm does not implement the configure
method. I've noticed that sfWidgetFormSelect.class.php doesn't even
call the parent::configure method (it has become evident why now).
Therefore, if I extend the sfWidgetFormSelect and override the
configure it's seems pointless to have $options and $attributes unless
I implement the merging myself.
I propose that sfWidgetForm adds the following:
/**
* @see sfWidget
*/
protected function configure($options = array(), $attributes =
array())
{
$this->options = array_merge($this->options, $options);
$this->attributes = array_merge($this->attributes, $attributes);
}
Second, that all children should call the parent if they override
configure.
Olmo
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---