title: CakePHP Form Action Button
body: <p>I am trying to place a non form related button into the view for a registration button to direct people to a controller action but i continue to get error500 internal error. Any ideas what i am doing wrong here?</p>
  
  <pre><code>&lt;?php 
  echo $this-&gt;Form-&gt;create('User');
  echo $this-&gt;Session-&gt;flash();
  echo $this-&gt;Form-&gt;input('username', array('label' =&gt; false, 'div' =&gt; false, 'class' =&gt; 'w-icon validate[required]'));
  echo $this-&gt;Form-&gt;input('password', array('label' =&gt; false, 'div' =&gt; false, 'class' =&gt; 'w-icon validate[required]'));
  echo $form-&gt;button('Register', array('type' =&gt; 'button', 'class' =&gt; 'button red tiny'));
  echo $this-&gt;Form-&gt;submit('Login', array('class' =&gt; 'button blue tiny'));
  echo $this-&gt;Form-&gt;end();
  ?&gt;
  </code></pre>