Ensure your form is posting to the correct URL (i.e. the correct
controller and action-- /employees/add for example).
Did you insert the code that JZ suggested? This should be your add()
function in employees_controller.php:
function add() {
if ( !empty($this->$data) ) {
pr($this->data);
//later you can do $this->Employee->save($this->data); and
remove the pr
} else {
$this->render();
}
}
Now when you go to /employees/add you'll get your form ("view"). Insert
some data and then submit it. You should get all the data output in the
$this->data variable.
Are you getting any errors? Make sure debug is set to at least 1 in
/app/config/core.php so you'll see warnings.
Ryan
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Cake
PHP" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/cake-php
-~----------~----~----~----~------~----~------~--~---