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(
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
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
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