所以我正在使用 Pod 获取一些记录。
我有 31 条记录,但我的while($thePod->fetchRecord())
循环只去了 15 次
$thePod = new Pod('projects');
$thePod->findRecords('slider_order ASC');
$totalItems = $thePod->getTotalRows(); // = 31
while($thePod->fetchRecord()) :
$i++;
endwhile;
echo $i.'/'.$totalItems.' looped through'; // displays 15/31
知道为什么会发生这种情况吗?
将第 2 行更改为:
$thePod->findRecords('slider_order ASC',-1);
15 是每页的默认记录,-1 返回所有记录。