I've spent the last 2 days trying to get my save() to work with no
luck. I've reviewed everything. Twice. I've checked this group for
things to look for and everything looks correct. I've printed my model
and it has the data:
Array
(
[Account] => Array
(
[first_name] => Joe
[last_name] => Tester
)
)
Here's my database schema:
CREATE TABLE accounts (
id INT UNSIGNED AUTO_INCREMENT PRIMARY KEY,
first_name VARCHAR(30) NOT NULL,
last_name VARCHAR(50) NOT NULL,
created DATETIME DEFAULT NULL,
modified DATETIME DEFAULT NULL)
And my controller:
class AccountsController extends AppController {
var $name = 'Accounts';
function create() {
pr($this-data);
if($this->Account->save($this->data)) {
echo 'save successful';
else
echo 'no good';
}
}
I don't have any redirects. I have debug at 2 and I don't see any
INSERT statement, nor any error messages.
Does anyone have some other things for me to check?
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
-~----------~----~----~----~------~----~------~--~---