: Mittwoch, 8. September 2010 16:32
> An: symfony users
> Betreff: [symfony-users] Removing a field from a form in an action
>
> Hi,
>
> I have a form to select some search options. I have a field that I
> wanto to show only if the user is logged in. I want to do something
>
Hi,
I have a form to select some search options. I have a field that I
wanto to show only if the user is logged in. I want to do something
like this:
if(!$this->getUser()->hasAttribute('user'))
unset($this->form->widgetSchema['mine']);
that doesn't work because widgetSchema is protected. M