Add something to the User->afterSave method and check the $created variable - if it's true then do your backups, if it's false it's an update so do nothing.
Jeremy Burns Class Outfit http://www.classoutfit.com On 30 Mar 2012, at 15:45:03, rainerpl wrote: > Hi > > I was wondering , if it is possible to write a plugin, that 'knows' if > for example a new user registers. > > E.g would it be possible to write a plugin, that automatically > duplicates/backs up user registration data, without requiring any > modifications to the User model. > (I know i could easily make it using User model alone, but im trying > to learn how to make plugins.) > > -- > Our newest site for the community: CakePHP Video Tutorials > http://tv.cakephp.org > Check out the new CakePHP Questions site http://ask.cakephp.org and help > others with their CakePHP related questions. > > > To unsubscribe from this group, send email to > [email protected] For more options, visit this group at > http://groups.google.com/group/cake-php -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions. To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/cake-php
