[symfony-users] Re: Pass "?variable=value" to admin generator form via GET

2009-09-08 Thread Wagner Pinheiro
Hi, See this: http://snippets.symfony-project.org/snippet/253 cheers, Wagner Pinheiro On Sep 7, 1:24 pm, Christian Hammers wrote: > Hello > > I have anAdminGenerator form with several input fields. Now I want a link > like /index.php/gu_historie/new?myinput=foo which not only jumps to this f

[symfony-users] Re: Pass "?variable=value" to admin generator form via GET

2009-09-08 Thread Bernhard Schussek
Hi Christian, You can try overriding the default value in the form: // actions.class.php executeNew(sfWebRequest $request) { parent::executeNew(); $this->form->setDefault('myinput', $request->getParameter('myinput')); } Bernhard -- Software Architect & Engineer Blog: http://webmozarts.com