hi
i have to DataObject:
$array = new DataObjectSet();
foreach(.....) {
$produktyPodkategoria = DataObject::get(...)
$array->merge($produktyPodkategoria);
}
$produkty = DataObject::get(...)
$array->merge($produkty);
how to paginate $array ?
this code doesnt work
$pageLength = 8;
$totalSize = count($array);
$array->getRange($SQL_start, $pageLength);
$array->setPageLimits($SQL_start, $pageLength, $totalSize);