public function index()
    {
        $this->loadModel('User.Users');
        $users = $this->Users->find()->contain(['Roles']);

        if (!empty($this->request->query['filter'])) {
            $this->Users->search($this->request->query['filter'], $users);
        }

        $this->title(__d('user', 'Users List'));
        $this->set('users', $this->paginate($users));
        $this->Breadcrumb->push('/admin/user/manage');
    }
public function index()
    {
        $this->loadModel('User.Users');
        $users = $this->Users->find()->contain(['Roles']);

        if (!empty($this->request->query['filter'])) {
            $this->Users->search($this->request->query['filter'], $users);
        }

        $this->title(__d('user', 'Users List'));
        $this->set('users', $this->paginate($users));
        $this->Breadcrumb->push('/admin/user/manage');
    }
public function index ( ) { $ this -> loadModel ( 'User.Users' ) ; $ users = $ this -> Users -> find ( ) -> contain ( [ 'Roles' ] ) ; if ( ! empty ( $ this -> request -> query [ 'filter' ] ) ) { $ this -> Users -> search ( $ this -> request -> query [ 'filter' ] , $ users ) ; } $ this -> title ( __d ( 'user' , 'Users List' ) ) ; $ this -> set ( 'users' , $ this -> paginate ( $ users ) ) ; $ this -> Breadcrumb -> push ( '/admin/user/manage' ) ; }
Shows a list of all registered users.

@return void
Shows a list of all registered users .