*/ if (!userIsAllowed('Users')) { $_SESSION['errorMessages'][] = new Exception('noAccessAllowed'); header('Location: '.BASE_URL); exit(); } $template = new Template(); $template->title = 'User accounts'; $userList = new UserList(); $userList->find(); $template->blocks[] = new Block('users/userList.inc',array('userList'=>$userList)); echo $template->render();