l Lohse wrote:
> You passed the user object as the first parameter – please read my email
> again. :) The first parameter has to be an Events object or null.
>
> Cheers, Daniel
>
> On 14.12.2010, at 15:57, P-A Coipeault wrote:
>
> > Hi Daniel.
>
> > I tried to in
:
$this->form->user = $this->getUser()->getGuardUser();
But i don't recover my user object when the form is displayed.
If you have any idea, that will be very useful.
Regards!
P-A
On Dec 14, 1:42 am, P-A Coipeault wrote:
> Thanks a lot Daniel !
> That's really hel
of the form instanciation like so:
>
> $form = new Form($object or null, array('user' =>
> $this->getUser()->getGuardUser());
>
> And then in the form's configure() method you can get the user with:
> $this->getOption('user').
>
> Cheers, Daniel
doctrine/Form.class.php, i can't use $sf_user or
$this->getGuardUser to allow or not the use of i.e. : $this-
>widgetSchema->setLabel('en', 'English');
If you need more information or code snippets, i can provide some to
figure it better.
Thanks for your help !
Kind