Hello,
Widgets' cloning methods add $this as the reference of the callable object.
So in the form when I create a new widget :
'keywords_list' => new sfWidgetFormSelect(array('choices' => new
sfCallable(array($this, 'getKeywordChoices')))),
$this refers to the form object with the method 'getKeywordChoices'.
But in the template layer the $this refers to the sfWidgetFormSelect widget,
as I suppose sfForm internal clone the sfWidgetFormSelect, and so the first
reference disappear.
It is a bug or a feature ?
If it a feature, it means I need to create a specific widget for each list,
but now this list depends on other values of the form (of course...) the
widget does not have access to the form....
--
Thomas Rabaix
Internet Consultant
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"symfony users" 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-users?hl=en
-~----------~----~----~----~------~----~------~--~---