example:

$this->widgetSchema->setFormFormatterName('list'); ---> will change
the form to list with li instead of using tables

i need the li's to look like <li class="clearfix">, instead of just
<li>

i hope this one is clear.

On Apr 28, 5:55 pm, Daniel Lohse <annismcken...@googlemail.com> wrote:
> Well, that doesn't get you much of an answer from me as I don't really 
> understand what you're trying to do. Add a class to all "list elements"? How 
> can symfony know what is a "list element"?
>
> You have to provide more context, e.g. the form class (or the form's base 
> class), the HTML structure, what is rendered, what you want to change and how.
>
> Zip it up or post it tohttp://pastebin.com
>
> This is the only way I and the others here can really help you.
>
> Daniel
>
> On 28.04.2010, at 11:51, mel_06 wrote:
>
>
>
> > doesn't really matter. after the form is rendered, it should put a
> > class to all list element.
>
> > On Apr 28, 5:37 pm, Daniel Lohse <annismcken...@googlemail.com> wrote:
> >> Every widget has 2 constructor arguments: $options and $arguments. You 
> >> have to pass array('class' => 'your_css_class') as the $arguments 
> >> argument, that is, as the second argument.
>
> >> But what kind of widget is your "list element"? A choice widget?
>
> >> On 28.04.2010, at 10:36, mel_06 wrote:
>
> >>> yes a CSS class indeed. how can i do that?
>
> >>> On Apr 28, 4:25 pm, Daniel Lohse <annismcken...@googlemail.com> wrote:
> >>>> A CSS class? You've got to be a bit more specific than that. :)
>
> >>>> Cheers, Daniel
>
> >>>> On 28.04.2010, at 10:22, mel_06 wrote:
>
> >>>>> hi guys!
>
> >>>>> i need to insert a class for my list element using sfform?
>
> >>>>> thanks!
>
> >>>>> --
> >>>>> 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 
> >>>> athttp://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 
> >> athttp://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 
> athttp://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

Reply via email to