I'm using the blog tutorial to learn everything about CakePHP. I
finished the tutorial and am just adding bells and whistles to figure
out what things do and I'm having a problem getting beforeSave() to
function:
I have a post controller, model and view and they're all working
fine. What I wanted to do was just test the beforeSave() function by
overwriting the post message as follows:
function beforeSave() {
$this->data['Post']['body'] = "I've overwritten your post!";
return true;
}
Shouldn't it be this simple or am I missing something? This does not
work.
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---