Archived
1
0
Fork 0

app/controllers/backend/UserController.php: adding listing of users.

This commit is contained in:
Henrik Hautakoski 2018-12-29 16:50:20 +01:00
parent 7c458a8052
commit bdde1d9ac7
No known key found for this signature in database
GPG key ID: 96765B12FEAC4745
2 changed files with 45 additions and 2 deletions

View file

@ -2,9 +2,18 @@
namespace App\Controller\Backend;
use App\Model\Data\User;
class UserController extends \Phalcon\Mvc\Controller
{
public function indexAction()
/**
* @param $page
*/
public function indexAction($page = 1)
{
$paginator = User::getPaginationList($page,15);
$this->view->pagination_url = '/admin/user/list/';
$this->view->page = $paginator->getPaginate();
}
}