I want to wirte a afterSave() function in app_controller so that afery
every save operation for all models of the application,  i can insert
LAST_INSERTED id to another table, Is it possible with cake 1.1?

function afterSave() {

        $this->AnotherModel->updateStatus($this->{$modelClass}); // This is
not working

        return parent::afterSave();

}

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to