Tesla,
I don't think set(compact... is what you want to be doing.
http://us.php.net/manual/en/function.compact.php
To move your massive array (or some other value) to the view you
would:
$this->set('viewVarName', $variableOrArrayName);
so in your specific case
$this->set('data', $data);
Then in your view you will have the $data array available with all
your thousands of records.
Regards,
Don
On May 11, 11:48 am, tesla100 <[email protected]> wrote:
> In my model, I have something like...
> $data = $this->MyModel->getData();
>
> $data is an array with ~ 1200 records, where each record has 3
> associative arrays inside, and each of these has maybe 3 or 4 indexes.
>
> If I do, debug($data); and die();, the entire array is spit out to the
> screen.
> All the data is there. It's even fast.
>
> However, if I do, $this->set(compact('data')); the page never loads.
> I just get a white screen or get that cakephp exceeded the max
> execution time of 30 seconds. The problem is ,I don't want to
> increase that 30 second limit. i need this to be faster. There has
> to be a way. If I can call debug() and see the whole thing, but is it
> not being passed to the view properly without timing out? Please help.
--
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