[symfony-users] Re: how can I pass ARRAY to the form ?

2009-11-08 Thread rooster (Russ)
Options are passed as an array to the second argument. $this-form = new ContactForm(array(), array(firm = $firm)); Then in your form class: $this-getOption(firm); Although in your case - if you are just trying to set defaults you can use the first array for that. On Nov 8, 10:10 pm, dziobacz

[symfony-users] Re: how can I pass ARRAY to the form ?

2009-11-08 Thread dziobacz
But that doesn't work in a form - why ? : $firm = $this-getOption(firm); $this-setDefault('contact', $firm['Translation']['pl'] ['description']); On 9 Lis, 00:10, rooster (Russ) russmon...@gmail.com wrote: Options are passed as an array to the second argument. $this-form = new