/** * (non-PHPdoc) * @see Controller::run() */ public function runImpl() { $this->page = $this->getPage(); // check access control // get page access object if one defined. // check access $access = WebContext::getPageAccess($this->page); if ($access != NULL && $this->isAuthenticated() && !$access->hasPageAccess($this->getUser())) { include 'config/includes/pages/403.php'; } else { // requires auth and is logged in ? if ($this->isAuthenticatedPage() && !$this->isAuthenticated()) { $this->redirectToLogin(); } $this->loadProcessor(); $this->loadForms(); $this->loadPage(); // displays the resultant page using the desired page template (templates/default.php if not set) include 'config/templates/' . Response::getInstance()->getPageTemplate($this->getUser()); } }