Example #1
0
 public static function execute()
 {
     $controller = self::get('controller', 'default');
     $action = self::get('action', 'default');
     self::$Controller = self::putintoClassParts($controller);
     self::$Action = self::putintoClassParts($action);
     self::$controller = self::putintoPathParts(self::$Controller);
     self::$action = self::putintoPathParts(self::$Action);
     self::$Action[0] = strtolower(self::$Action[0]);
     $class = 'Dura_Controller_' . self::$Controller;
     if (!class_exists($class)) {
         die("Invalid Access");
     }
     $instance = new $class();
     $instance->main();
     self::user()->updateExpire();
     unset($instance);
 }