It would be nice to be able to define template sets and reference them
by name for a complete form e.g. you could create two sets called
"new_forum_posting" and "registration" and then do something like:
<?php $f = $view->get('form')->create($form, 'table', 'registration') ?
>
and then have all fields use that template set so you don't have to
specify the class for each individual field.
Alternatively you could allow the definition of a form-global class
name that gets set for all fields of the form
so that could be used as a basis to style the form.
The first approach would be better if you really do some weird stuff
with your forms (i.e. build some strange html around the fields for
example) and the second approach would be better if you're fine with
standard html constructs and only want to style the elements.
--
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 developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/symfony-devs?hl=en