title: Symfony2, How to make a form label class/attr different than its input?
body: <p>I would like to build a form with label and inputs, but the class of them should be different. Code below creates the label for the input with same attr: </p>
  
  <pre><code> public function buildForm(FormBuilder $builder, array $options)
      {
          $builder
                  -&gt;add('hours', null ,
                    array('attr'=&gt; 
                               array(
                                   'placeholder'=&gt;'Working Hours',
                                   'class'=&gt;'ui-spinner-box') ) )
      }
  </code></pre>
  
  <p>In my code above the <code>ui-spinner-box</code> will be outputted for both label and input. It will even put placeholder for its label.</p>
  
  <p>So how to make it create <code>attr</code> for label separately so I can output something like below :</p>
  
  <pre><code>&lt;label class="MYCLASSFOR_LABEL"   for="input_id"&gt;Hours&lt;/label&gt;
  &lt;input class="MYCLASSFOR_INPUTS"  type="text" id="input_id" name="" value="" &gt;
  </code></pre>