title: How do I insert a Font Awesome glyph/icon in a CakePHP submit button?
body: <p>I am trying to insert a <a href="http://fontawesome.io/icons/" rel="nofollow">Font Awesome icon</a> in a submit button using CakePHP and Twitter Bootstrap 3.</p>
  
  <p>Here is the code:</p>
  
  <pre><code>echo $this-&gt;Form-&gt;submit('Send', array('class' =&gt; 'btn btn-warning fa fa-envelope', 'escape' =&gt; false));
  </code></pre>
  
  <p>It works for regular buttons, but for the input that which is generated by the FormHelper above, it does not render with an icon. Can I tweak FormHelper::submit to solve this?</p>
  
  <p>I could use other types of FormHelper buttons, but the CakePHP docs explicitly states that:</p>
  
  <blockquote>
    <p>Try to avoid using FormHelper::input() to generate submit buttons. Use FormHelper::submit() instead.</p>
  </blockquote>