Return to Snippet

Revision: 27184
at May 26, 2010 22:31 by metoikos


Initial Code
class ClientForm extends BaseClientForm
{
  public function configure() {
    $fields = $this->getWidgetSchema()->getFields();
    foreach ($fields as $f) {
        $f->setAttribute("class", "client_form_field");
    }
  }
}

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

Initial Description

                                

Initial Title
Symfony Form Snipped For Widget Attributes

Initial Tags
form, php

Initial Language
PHP