title: Cake PHP 2 custom Form->Label
body: <p>I'm using the Form helper to generate a label:</p>
  
  <pre><code>$this-&gt;Form-&gt;label('Contact.name', 'Name');
  </code></pre>
  
  <p>Which generates the following:</p>
  
  <pre><code>&lt;label for="ContactName"&gt;Name&lt;/label&gt;
  </code></pre>
  
  <p>Is it possible to generate the following using the helper:</p>
  
  <pre><code>&lt;label for="ContactName"&gt;&lt;span class="mandatory"&gt;*&lt;/span&gt; Name&lt;/label&gt;
  </code></pre>
  
  <p>Whilst I can manually write the html for the above it becomes a little more difficult when I am using the input method where a label is automatically generated.</p>
  
  <p>For example:</p>
  
  <pre><code>$this-&gt;Form-&gt;input('Contact.forename',array('div' =&gt;false,
                     'label' =&gt; array(
                     text'=&gt; 'First Name',class =&gt;'myclass'),
                     'class' =&gt; 'input','size' =&gt; '25' ,'tabindex' =&gt; '1'));
  </code></pre>
  
  <p>Is this possible in cake or do I have to manually inject the html using javascript when the page loads? Which I would think is rather ugly.</p>