Hello, What is the preferred way to add a new widget and its validator(s) to a form that already has some widgets configured? The documentation only indicates setWidgets() method, there's no setWidget() or addWidget() method. From what I see, I can probably use setWidgets() for that:
$widgets = $this->widgetSchema->getFields(); $widgets['my_new_field'] = new sfWidgetFormInput(); $this->setWidgets($widgets); But this looks odd. What about this? $this->widgetSchema['my_new_field'] = new sfWidgetFormInput(); But I'm not sure if that would work correctly since setWidgets() does more than only assigning the widgets to the schema. What's the "right" way? -- Regards, Rytis --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
