Friday, March 30, 2012

Re: 'Listen' for new database entries from a plugin

If you are using CakePHP 2.1, use CakeEvent to dispatch events for inter
plugin communication:
http://book.cakephp.org/2.0/en/core-libraries/events.html

On 30.03.2012 16:45, 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
cake-php+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php

No comments: