For example,Usually, we write
[code]
$result = $this->Model->save();
if(!$result){
  //...
}
[/code]

This way ,we will write the model error handle code everywhere we use model
save or update function. I mean is there a way that we can write a function
in app_controller or other places than can help us to reduce these redundant
code?
-- 
Thanks
Joshua

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"CakePHP" 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
-~----------~----~----~----~------~----~------~--~---

Reply via email to