Esempio n. 1
0
 public static function dispatch()
 {
     $uri = isset($_SERVER['SCRIPT_NAME']) ? $_SERVER['SCRIPT_NAME'] : '/';
     $act = trim($uri, '/');
     require_once __DIR__ . '/actions.php';
     if ($act == 'execute') {
         actions::execute();
     } else {
         ob_start();
         $conf = self::getConfig();
         extract($conf);
         include __DIR__ . '/template.phtml';
         echo ob_get_clean();
     }
 }