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