Improve user controllers and views

This commit is contained in:
Frederic Guillot
2016-05-16 20:55:21 -04:00
parent abdf6f9780
commit 4514bc1d4b
49 changed files with 219 additions and 210 deletions

View File

@@ -0,0 +1,32 @@
<?php
namespace Kanboard\Controller;
/**
* Class User List Controller
*
* @package Kanboard\Controller
* @author Frederic Guillot
*/
class UserListController extends BaseController
{
/**
* List all users
*
* @access public
*/
public function show()
{
$paginator = $this->paginator
->setUrl('UserListController', 'show')
->setMax(30)
->setOrder('username')
->setQuery($this->user->getQuery())
->calculate();
$this->response->html($this->helper->layout->app('user_list/show', array(
'title' => t('Users').' ('.$paginator->getTotal().')',
'paginator' => $paginator,
)));
}
}