Thanks for all the tips! They really helped clarify things for me.
I implemented your suggestions by adding the following code into the
app_model.php file:
******************CODE ***********************
var $pager = 1;
function iterator($conditions, $fields = null, $limit = 200)
{
$this->cacheQueries = false;
$results = $this->findAll($conditions, $fields, null, $limit,
$this->pager);
$this->pager++;
if (count($results) > 0)
{
return $results;
}else
{
return false;
}
}
*******************************************************
So now I can re-use the iterator function for all models in the code.
Thanks again for the help!
--~--~---------~--~----~------------~-------~--~----~
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?hl=en
-~----------~----~----~----~------~----~------~--~---