Exemplo n.º 1
0
 public function run()
 {
     if ($this->config->getConfigFolder() == null) {
         $this->setConfigFolder('../app/config');
     }
     $this->setRoutes();
     $this->setDependancies();
     $this->frontController = FrontController::getInstance();
     //$this->frontController->setURI(substr($_SERVER["PHP_SELF"], strlen($_SERVER['SCRIPT_NAME']) + 1));
     $_sess = $this->config->app['session'];
     if ($_sess['autostart']) {
         Session::setSession($_sess['name'], $_sess['lifetime'], $_sess['path'], $_sess['domain'], $_sess['secure']);
     }
     $this->frontController->dispatch();
 }