public function setController() { showtime('pre-controller-new'); $autoloader =& AutoLoader::Instance(); // controller $controller = ControllerFactory::Factory($this->login_required, $autoloader->paths); $this->controller = new $controller($this->module, $this->view); $this->controller->setInjector($this); $this->controller->setData($this->router->Dispatch()); // If session timed out on input form, get the saved form data // after the user has logged back in // see system::display for saving of form data if (isset($_SESSION['data']) && $this->modules['module'] != 'login') { $this->controller->setData($_SESSION['data']); unset($_SESSION['data']); } $this->controller->setData($_GET); $this->controller->setData($_POST); }