title: Custom Input HTML with CakePHP's FormHelper
body: <p>I'm trying to use CakePHP's form helper to generate some input elements.</p>
  
  <p>The HTML I am trying to generate is:</p>
  
  <pre><code>&lt;div class="formRow"&gt;
      &lt;label&gt;LabelText:&lt;/label&gt;
      &lt;div class="formRight"&gt;
          &lt;input name="data[User][email_address]" type="text" value=""&gt;
      &lt;/div&gt;
      &lt;div class="clear"&gt;&lt;/div&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p>Ive had a look through the Cake documentation (Using 2.1) and I can't find enough information on how to do this.</p>
  
  <p>It looks like I need to use the format option on the input method, but can't figure out how to get it right. Especially concerned about the div surrounding the input field with a class name on it..</p>
  
  <p>E.g. Ive tried something like this: </p>
  
  <pre><code>echo $this-&gt;Form-&gt;input('email_address', array(
                                                  "input" =&gt; array('attributes' =&gt; array('wrap' =&gt; 'div','class' =&gt; 'formRight'))));
  </code></pre>
  
  <p>But this doesnt change any of the markup and just throws this error:
     Notice (8): Array to string conversion [CORE\Cake\View\Helper.php, line 459]</p>
  
  <p>So my question is how can I get this form helper to create that markup?</p>
  
  <p>Any help much appreciated</p>