title: Disabled button em CakePHP
body: <p>[below translated from translate.google.com]</p>
  
  <p>I'm looking for the syntax of how to make a button disabled in CakePHP and I can not get a result; My application need to first save a field for a button to finish the whole process after another button. The first button is a submit and redirects to the same page. The second button performs a function of the controller and go to the next process. I want to prevent the user to go to the next procedure without saving the first; I already have a variable that defines whether it is safe or not, just do not know how to make the Finish button is disabled; </p>
  
  <p>Button code:</p>
  
  <pre><code>echo $this-&gt;Html-&gt;link(
          $this-&gt;Html-&gt;tag('span', '', array('class' =&gt; 'glyphicon glyphicon-ok')) . " Finalizar",
          array('controller' =&gt; 'Questoes','action' =&gt; 'limparSession'),
          array('role' =&gt; 'button', 'class' =&gt; 'btn btn-success', 'escape' =&gt; false)
      );
  </code></pre>