the widgets are protected or private? On 2/19/09, isleshocky77 <[email protected]> wrote: > > The following code works: > [php] > <?php > $sf_user_user = new sfUserUserForm($this->getObject()->getUser()); > $sf_user_user->widgetSchema->setFormFormatterName > ('definitionListNoDecorator'); > unset($sf_user_user['sf_guard_user_id']); > $this->embedForm('sf_user_user', $sf_user_user); > > However the following code does not work: > [php] > <?php > $sf_user_user = new sfUserUserForm($this->getObject()->getUser()); > unset($sf_user_user['sf_guard_user_id']); > $this->embedForm('sf_user_user', $sf_user_user); > # The following two lines should be the same as the first > examples's line 2 > $this->getWidget('sf_user_user')->setFormFormatterName > ('definitionListNoDecorator'); > $this->widgetSchema['sf_user_user']->setFormFormatterName > ('definitionListNoDecorator'); > > The reason I need the second set of code to work is so that a class > extending this form class can change the decorator of an embedded > form. Unless I'm doing something wrong, it looks like there is no way > to do this. > > Thanks for any help. > > -- > Stephen Ostrow <[email protected]> > > >
--~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
