[symfony-users] Re: using partials in i18n forms and credentials for i18n forms

2010-12-21 Thread P-A Coipeault
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

[symfony-users] Re: using partials in i18n forms and credentials for i18n forms

2010-12-14 Thread P-A Coipeault
: $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

[symfony-users] Re: using partials in i18n forms and credentials for i18n forms

2010-12-14 Thread P-A Coipeault
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

[symfony-users] using partials in i18n forms and credentials for i18n forms

2010-12-13 Thread P-A Coipeault
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