Ok guys I got it to work. This is how you would pass Symfony objects to the form.
In my Actions I had to overwrite the automatically generated ones with: public function executeNew(sfWebRequest $request) { $this->form = $this->configuration->getForm(false, array ('employee' => $this->getUser())); $this->Article = $this->form->getObject(); } Then I accessed that option in my form class with $this->getOption('employee') and based my logic on that. On Jan 13, 8:28 am, apm <korja...@gmail.com> wrote: > > 2. i totaly cant get myUser object from form class. No idea how get > > auth user in form::configure > > Answer to myself get user from form class, possible with > sfContext->GetUser, so i can move fill the hidden input from controller > to form methods.
-- You received this message because you are subscribed to the Google Groups "symfony users" group. To post to this group, send email to symfony-us...@googlegroups.com. To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en.