title: How to add class and id to form element in Zend Framework 2.2.4
body: <p>The HTML I need:</p>
  
  <pre><code>&lt;label for="text_field_username"&gt;User Name&lt;/lable&gt;
  &lt;input type="text" id="text_field_username" name="text_field_username" class="form-control" /&gt;
  </code></pre>
  
  <p>I want the for of the label to link to the id of the input. This way the user can click on the label to highlight the input. More usefull for checkbox.
  Also, less important, I want to had a class to the input field.</p>
  
  <p>What I have tried and does not works for me:</p>
  
  <pre><code>echo $this-&gt;formRow($form-&gt;get('usr_name'));
  </code></pre>
  
  <p>I also tried to use partial layout. </p>
  
  <pre><code>echo $this-&gt;formElement($element);
  </code></pre>
  
  <p>Before posting this question I came across this documentation
  framework.zend.com/manual/2.2/en/modules/zend.form.view.helpers.html#formlabel</p>
  
  <p>It does not works. It add the for but it point to nothing. !?</p>