I added a row in the table and added this in the controller:
function create() {
if (empty($this->data)) {
// no error message
$this->set('error', false);
$dat = $this->Account->findAll();
pr($dat);
// display the form to create account
$this->render();
}
else { .......
}
}
and I see this when I open the page:
Array
(
[0] => Array
(
[Account] => Array
(
[id] => 1
[first_name] => Jane
[last_name] => Doe
[created] => 2007-08-04 10:55:40
[modified] => 2007-08-04 10:55:40
)
)
)
So I can connect to the database and retrieve data. Just can't
save. ???
Thanks,
Paul
--~--~---------~--~----~------------~-------~--~----~
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?hl=en
-~----------~----~----~----~------~----~------~--~---