public function index($page = 1)
    {
        $user = Sentry::getUser();
        $this->data['title'] = 'Users List';
        $this->data['users'] = User::where('id', '<>', $user->id)
                               ->get()
                               ->toArray();

        /** load the user.js app */
        $this->loadJs('app/user.js');

        /** publish necessary js  variable */
        $this->publish('baseUrl', $this->data['baseUrl']);

        /** render the template */
        View::display('@usergroup/user/index.twig', $this->data);
    }
public function index($page = 1)
    {
        $user = Sentry::getUser();
        $this->data['title'] = 'Users List';
        $this->data['users'] = User::where('id', '<>', $user->id)
                               ->get()
                               ->toArray();

        /** load the user.js app */
        $this->loadJs('app/user.js');

        /** publish necessary js  variable */
        $this->publish('baseUrl', $this->data['baseUrl']);

        /** render the template */
        View::display('@usergroup/user/index.twig', $this->data);
    }
public function index ( $ page = 1 ) { $ user = Sentry :: getUser ( ) ; $ this -> data [ 'title' ] = 'Users List' ; $ this -> data [ 'users' ] = User :: where ( 'id' , '<>' , $ user -> id ) -> get ( ) -> toArray ( ) ; /** load the user.js app */ $ this -> loadJs ( 'app/user.js' ) ; /** publish necessary js  variable */ $ this -> publish ( 'baseUrl' , $ this -> data [ 'baseUrl' ] ) ; /** render the template */ View :: display ( '@usergroup/user/index.twig' , $ this -> data ) ; }
display list of resource
display list of resource