Skip to content

Instantly share code, notes, and snippets.

@said-and-done
Created January 30, 2014 09:38
Show Gist options
  • Save said-and-done/8705357 to your computer and use it in GitHub Desktop.
Save said-and-done/8705357 to your computer and use it in GitHub Desktop.
#in your beforeFilter
$this->Crud->on('afterSave', function(CakeEvent $event){
if($event->subject->success){
pr($event->subject->id);
}
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment