title: Using CakePHP's Form helper to generate a drop down list and add a custom class
body: <p>I'm trying to generate an HTML <code>select</code> element for filtering purposes on my CakePHP 2.2 website.</p>
  
  <p>Here's the code I run in my <strong>View</strong>:</p>
  
  <pre><code>echo $this-&gt;Form-&gt;input('proveedor_id', array(
      'type' =&gt; 'select', 
      'options' =&gt; $proveedores,
      'div' =&gt; array('class' =&gt; 'asd')
  ));
  </code></pre>
  
  <p>However the generated <code>select</code> element does not have the class I want <code>asd</code>.</p>
  
  <p>Any suggestions? </p>