medoix
medoix

Reputation: 1179

CakePHP Form Action Button

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?

<?php 
echo $this->Form->create('User');
echo $this->Session->flash();
echo $this->Form->input('username', array('label' => false, 'div' => false, 'class' => 'w-icon validate[required]'));
echo $this->Form->input('password', array('label' => false, 'div' => false, 'class' => 'w-icon validate[required]'));
echo $form->button('Register', array('type' => 'button', 'class' => 'button red tiny'));
echo $this->Form->submit('Login', array('class' => 'button blue tiny'));
echo $this->Form->end();
?>

Upvotes: 0

Views: 6943

Answers (1)

dogmatic69
dogmatic69

Reputation: 7575

$form->button is CakePHP 1.2 syntax, $this->Form is 1.3 onwards.

Upvotes: 2

Related Questions