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

2010-12-21 Thread P-A Coipeault
Hi Daniel, Sorry for the long response time, i was on another project. Here is what i have in /apps/backend/events/actions/ actions.class.php : public function executeNew(sfWebRequest $request) { $object = $this->configuration->getForm(); $options = $this->getUser()->getGuardUser(

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

2010-12-14 Thread Daniel Lohse
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 instanciate my form the way you suggested but i only get > that 5

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

2010-12-14 Thread P-A Coipeault
Hi Daniel. I tried to instanciate my form the way you suggested but i only get that 500 error : The "EventsForm" form only accepts a "Events" object. I also tried another way, by overriding the executeNew() method and assigning my user object to the form object like that : $this->form->user = $thi

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

2010-12-14 Thread P-A Coipeault
Thanks a lot Daniel ! That's really helpfull :) So, one point resolved above two is resolved. Thanks again. Cheers, P-A On Dec 14, 12:25 am, Daniel Lohse wrote: > You can pass the user as an option to the form from the action — just pass an > array as the second parameter of the form instancia