title: cakephp input type number
body: <p>I have a mobile website form that I want to add type attributes to the inputs so that there correct keyboard format will pop up. </p>
  
  <p>However in cakephp setting the type as number a textarea is created instead of the input and the type is not set.</p>
  
  <p>Setting type as text does work.</p>
  
  <p>How do I overide this and have cakephp just keep it as a text input with type=number?</p>
  
  <pre><code>&lt;?php echo $form-&gt;input('phone',array('type' =&gt; 'number')); ?&gt;
  </code></pre>
  
  <p>Result: </p>
  
  <pre><code>  &lt;textarea id="UserCardExpires" rows="6" cols="30" name="data[User][card_expires]"class="ui-input-text ui-body-c ui-corner-all ui-shadow-inset"&gt;&lt;/textarea&gt;
  </code></pre>
  
  <p>This is ok:</p>
  
  <pre><code>  &lt;?php echo $form-&gt;input('postcode' ,array('type' =&gt; 'text')); ?&gt; 
  </code></pre>
  
  <p>Result</p>
  
  <pre><code>  &lt;input type="text" id="UserPostcode" name="data[User][postcode]" class="ui-input-text ui-body-c ui-corner-all ui-shadow-inset"&gt;
  </code></pre>