Example #1
0
 public function renderUsers()
 {
     $vp = new Cntrl\VisualPaginator($this, 'paginator');
     $paginator = $vp->getPaginator();
     $paginator->itemsPerPage = 25;
     $paginator->itemCount = $this->users->countBy();
     $this->template->users = $this->users->findBy([], [], $paginator->itemsPerPage, $paginator->offset);
 }