public function getUsersPages() { $page = $this->getPage(); $pages = array(); $model = new BSA_PRO_Model(); if ($model->getUsersList($page, self::PAGE_SIZE)) { foreach ($model->getUsersList($page, self::PAGE_SIZE) as $entry) { $pages[] = $entry; } } if ($page > 1 and !count($pages)) { return 'not_found'; } return $pages; }