On Wed, Mar 2, 2011 at 4:31 PM, heohni
<[email protected]> wrote:
> Hi,
>
> I have a membership app where members has many payments.
> In my member controller => action 'listpayments' I have a function
> where I create a list of all members and their payments based on
> certain filters.
>
> At a certain point of time, I have a list of due payments which I want
> to transfer now to my member controller but another action called 'do
> something else'
>
> As I have made so many "calculating work" before, I do not want to
> repeat myself... to get the final due payments again to continue my
> way in my app.
>
> Should I store my array in a session?
> Or how can I keep the data produced in function listpayments() to have
> them also available in function dosomethigelse()?

Perhaps you should put all of the logic in the Member model. You could
then pass the array between methods.

-- 
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

Reply via email to