Render each widget according to its type

Discussion relating to version 1.3.x and 1.4.x

Render each widget according to its type

Postby hugues » Mon Aug 13, 2012 4:05 pm

Hello,

I'm looking for a way to rendre each widget dynamicly according to his type.

For example, a sfWidgetFormInputText will be render using its own "form_formatter", and a sfWidgetFormSelect using an other.
Like a sfWidgetFormSchema::setWidgetFormatterName.

The gaol is to use the CSS framework Yaml.de (http://www.yaml.de/docs/index.html#yaml-forms)

Best regards,
hugues
hugues
Junior Member
 
Posts: 4
Joined: Wed Dec 05, 2007 11:13 am
Location: Boulogne-Billancourt

Re: Render each widget according to its type

Postby hugues » Mon Aug 13, 2012 5:16 pm

Finally I think the best way is to define and use an Helper.

Best regards,
Hugues
hugues
Junior Member
 
Posts: 4
Joined: Wed Dec 05, 2007 11:13 am
Location: Boulogne-Billancourt


Return to symfony 1.3 and 1.4

Who is online

Users browsing this forum: No registered users and 8 guests