title: Why is CakePHP is rendering a drop-down instead of a text box in my form?
body: <p>I'm trying to create a text box using the vales retrieved from the database. But instead of a text box, a select box (drop down box) is created. I do not understand why. I have given the type as text only, then why a select box is being created?</p>
  
  <pre><code>echo $form-&gt;input($r['Attribute']['label'], 
                    array('label' =&gt; $r['Attribute']['label'].'  * ',
                          'class' =&gt; 'required',
                          'id'    =&gt; $r['Attribute']['id'],
                          'name'  =&gt; $r['Attribute']['label'],
                          'type'  =&gt; 'text',
                          'style' =&gt; 'width:' . $r['Attribute']['size'] . 'px'));
  </code></pre>
  
  <p>This is the Attributes table with a few records.</p>
  
  <pre><code>id  form_id  label  type    size  sequence_no  required
  2   1        Name   text    200   1            true
  3   1        Age    number  200   2            true 
  </code></pre>
  
  <p>The output of $form->input is</p>
  
  <pre><code>&lt;div class="input select"&gt;
  &lt;label for="4"&gt;Name * &lt;/label&gt;
  &lt;select id="4" class="required" style="width: 200px;" name="data[Name]"&gt; &lt;/select&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p>instead of </p>
  
  <pre><code>&lt;div class="input text"&gt;
  &lt;label for="4"&gt;Name * &lt;/label&gt;
  &lt;input id="4" class="required" style="width: 200px;" name="data[Name]"&gt; &lt;/input&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p>How does the input type get saved as "select" even when I explicitly mention it as "text"?</p>