1
In admin/main.php the code not working properly, pagenav don't work
if($itemsCount > 0) {
60 $class = '';
61 //$items = $hBdUsersBirthday->getItems($start, $limit, 'birthday_lastname');
62
63 $tblItems = array();
64 //$critere = new Criteria($this->keyName, 0 ,'<>');
65 $critere = new Criteria('birthday_id', 0 ,'<>');
66 $critere->setLimit($limit);
67 $critere->setStart($start);
68 $critere->setSort('birthday_lastname');
69 // $critere->setOrder($order);
70 // $tblItems = $this->getObjects($critere, $idAsKey);
71
72
73
74 $items = $hBdUsersBirthday->getObjects($start, $limit, 'birthday_lastname');
I try this:
if($itemsCount > 0) {
$class = '';
$criteria=new Criteria('birthday_id', 0 ,'<>');
$criteria->setLimit($limit);
$criteria->setStart($start);
$criteria->setSort('birthday_lastname');
//$items = $hBdUsersBirthday->getItems($start, $limit, 'birthday_lastname');
$items = $hBdUsersBirthday->getObjects($criteria, true);