I have a function that does a whole bunch of complex finds and calculations to produce an array, which is then cached. Some of the array keys contain meta data about how the calculation was done and some high level contents of the results. One of the array keys contains the actual results that I want to display and paginate. How can I read that array key from cache and paginate it in a view?
<jeremybu...@classoutfit.com> wrote:
> I have a function that does a whole bunch of complex finds and calculations
> to produce an array, which is then cached. Some of the array keys contain
> meta data about how the calculation was done and some high level contents of
> the results. One of the array keys contains the actual results that I want
> to display and paginate. How can I read that array key from cache and
> paginate it in a view?
> --
> 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
On Saturday, 28 April 2012 14:49:30 UTC+2, Jeremy Burns wrote:
> I have a function that does a whole bunch of complex finds and > calculations to produce an array, which is then cached. Some of the array > keys contain meta data about how the calculation was done and some high > level contents of the results. One of the array keys contains the actual > results that I want to display and paginate. How can I read that array key > from cache and paginate it in a view?
> On Saturday, 28 April 2012 14:49:30 UTC+2, Jeremy Burns wrote:
> I have a function that does a whole bunch of complex finds and calculations to produce an array, which is then cached. Some of the array keys contain meta data about how the calculation was done and some high level contents of the results. One of the array keys contains the actual results that I want to display and paginate. How can I read that array key from cache and paginate it in a view?
> -- > 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
Use the 1.3 ArrayDatasource and set the $records member variable to the part of the array you need to use as if it came from a DB in the constructor. Then you can do whatever you want with it. It should be pretty straightforward.
On Saturday, April 28, 2012 5:49:30 AM UTC-7, Jeremy Burns wrote:
> I have a function that does a whole bunch of complex finds and > calculations to produce an array, which is then cached. Some of the array > keys contain meta data about how the calculation was done and some high > level contents of the results. One of the array keys contains the actual > results that I want to display and paginate. How can I read that array key > from cache and paginate it in a view?