On Fri, Sep 4, 2009 at 11:09 AM, Xanax<mammer...@gmail.com> wrote:
>
> Is it possible to create a "beforesave" method for all the models ?
> I mean in a file like app_controller which controll all the controllers

Yes.  You can create an app_model.php with an AppModel
class extending Model in you /app folder and overwrite the
beforeSave method there.  All of your models will use it.

Best regards

--
MARCELO DE F. ANDRADE
Belem, PA, Amazonia, Brazil
Linux User #221105

http://mfandrade.wordpress.com

--~--~---------~--~----~------------~-------~--~----~
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 
cake-php+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to