Re: [symfony-users] [sf2] [beta4] options to forms

2011-06-17 Thread Michael Holm
Hi,

Sure.. im trying to find a way to make a form with a collection of
models, i mean:

i have the models:

- attributes
- filters
- filter_attributes

now what i want is a form with all the filter attributes i can change
at once.. that i no problem, i can just make a form on the filter, and
then make an embedded collection..

But when i want to customize the labels on all the fields, and i also
want to make some of the fields as entities for other tables...

It could for instance be a list of countries, or a list of groups or
whatever fit my needs..

So i dont really have any code to share, im trying to come up with
some solution for making such a form which fill my needs..

Best regards,
Michael Holm



On Thu, Jun 16, 2011 at 4:20 PM, Luis Cordova cordo...@gmail.com wrote:
 Hi Mike,

 can you show what you are trying to do with some code?
 I am eager to see, thanks

 Luis

 On Thu, Jun 16, 2011 at 4:00 AM, Michael Holm ho...@hollo.dk wrote:
 Hi,

 I have a question about how do i get options to the form, the right way?

 I can just parse the options to the constructor of my form class, and
 extend the options array in the constructor in the form class.. but i
 dont know if that can have any downsides?

 Hope someone can help me?

 Best regards,
 Michael Holm

 --
 If you want to report a vulnerability issue on symfony, please send it to 
 security at symfony-project.com

 You received this message because you are subscribed to the Google
 Groups symfony users group.
 To post to this group, send email to symfony-users@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


 --
 If you want to report a vulnerability issue on symfony, please send it to 
 security at symfony-project.com

 You received this message because you are subscribed to the Google
 Groups symfony users group.
 To post to this group, send email to symfony-users@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


-- 
If you want to report a vulnerability issue on symfony, please send it to 
security at symfony-project.com

You received this message because you are subscribed to the Google
Groups symfony users group.
To post to this group, send email to symfony-users@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


[symfony-users] [sf2] [beta4] options to forms

2011-06-16 Thread Michael Holm
Hi,

I have a question about how do i get options to the form, the right way?

I can just parse the options to the constructor of my form class, and
extend the options array in the constructor in the form class.. but i
dont know if that can have any downsides?

Hope someone can help me?

Best regards,
Michael Holm

-- 
If you want to report a vulnerability issue on symfony, please send it to 
security at symfony-project.com

You received this message because you are subscribed to the Google
Groups symfony users group.
To post to this group, send email to symfony-users@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


Re: [symfony-users] [sf2] [beta4] options to forms

2011-06-16 Thread Luis Cordova
Hi Mike,

can you show what you are trying to do with some code?
I am eager to see, thanks

Luis

On Thu, Jun 16, 2011 at 4:00 AM, Michael Holm ho...@hollo.dk wrote:
 Hi,

 I have a question about how do i get options to the form, the right way?

 I can just parse the options to the constructor of my form class, and
 extend the options array in the constructor in the form class.. but i
 dont know if that can have any downsides?

 Hope someone can help me?

 Best regards,
 Michael Holm

 --
 If you want to report a vulnerability issue on symfony, please send it to 
 security at symfony-project.com

 You received this message because you are subscribed to the Google
 Groups symfony users group.
 To post to this group, send email to symfony-users@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


-- 
If you want to report a vulnerability issue on symfony, please send it to 
security at symfony-project.com

You received this message because you are subscribed to the Google
Groups symfony users group.
To post to this group, send email to symfony-users@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