public function showUsers()
    {
        // Get dependencies
        $userMapper = ($this->container->dataMapper)('UserMapper');

        // Fetch users
        $users = $userMapper->find();

        return $this->render('users.html', $users);
    }
public function showUsers()
    {
        // Get dependencies
        $userMapper = ($this->container->dataMapper)('UserMapper');

        // Fetch users
        $users = $userMapper->find();

        return $this->render('users.html', $users);
    }
public function showUsers ( ) { // Get dependencies $ userMapper = ( $ this -> container -> dataMapper ) ( 'UserMapper' ) ; // Fetch users $ users = $ userMapper -> find ( ) ; return $ this -> render ( 'users.html' , $ users ) ; }
Show All Users
Show All Users