18591 Posts in 4875 Topics by 2285 members
General Questions
SilverStripe Forums » General Questions » how to paginate merge arrays ?
General questions about getting started with SilverStripe that don't fit in any of the categories above.
Moderators: martimiz, Howard, Sean, Ryan M., biapar, Willr, Ingo, swaiba
|
Page:
1
|
Go to End | |
| Author | Topic: | 94 Views |
-
how to paginate merge arrays ?

29 November 2011 at 12:48am
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);
| 94 Views | ||
|
Page:
1
|
Go to Top |


