Posted By

metoikos on 05/26/10


Tagged

form php symfony


Versions (?)

Symfony Form Snipped For Widget Attributes


 / Published in: PHP
 

URL: http://snippets.symfony-project.org/snippet/413

  1. class ClientForm extends BaseClientForm
  2. {
  3. public function configure() {
  4. $fields = $this->getWidgetSchema()->getFields();
  5. foreach ($fields as $f) {
  6. $f->setAttribute("class", "client_form_field");
  7. }
  8. }
  9. }

Report this snippet  

You need to login to post a comment.