Re: Events, multiple listeners, and return data
Thanks. Just curious - why is the result data overwritten in this way?
For me, at least, using the event system to get information from
multiple listeners (as in my situation) was one of the first uses I
thought of, especially since it can replace a bunch of custom stuff I
had written previously. It seems a bit odd not to handle return data
from multiple listeners without resorting to the methods you outlined
below.
On May 14, 3:58 pm, José Lorenzo <jose....@gmail.com> wrote:
> Basically you have two options, one is writing the result property directly on each listener to push new values on the array as needed, wich is the option I would recommend.
>
> The other option is to use the ObjectCollection instead of the event sustem and pass the collectReturn param
--
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
0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home