Hi,
I have some specific problem. My criteria are very heavy and i need only search some records without count all items. I have item count in cache(I use xcache).
for tests I trying this:
$criteria->limit = 20;
$CActiveDataProvider = new CActiveDataProvider($this, array(
'criteria' => $criteria,
'pagination' => array(
'pageSize' => isset($_GET['pageSize']) ? (int) $_GET['pageSize'] : 20,
'ItemCount' => 6,
),
//*/
//'pagination' => false,
'sort' => $sort,
'totalItemCount' => $this->countCandidate()
));
return $CActiveDataProvider;
Is there a way to bypass the counting of records and set them manually in pagination?