To retrieve that many records and instantiate the classes, it is using
more than your PHP settings allow for a single script ( see
"memory_limit" in your php.ini , default is 8MB ).
So, you can either retrieve less records, or you can increase this
memory limit. To only retrieve the 50 records that used to be the
default for findAll (but was removed around v1.0), then just have
$this->set('data', $this->Product->findAll(null,null,null,50));
Or, to increase the memory PHP can use for your script (if you do want
all 5000 records)
ini_set( 'memory_limit', '64M' );
(or whatever memory size seems appropriate for your server specs and
load)
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Cake
PHP" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/cake-php
-~----------~----~----~----~------~----~------~--~---