Example #1
0
 /**
  * Execute the requested operation.
  */
 public static function Run()
 {
     //initialize the framework
     self::Initialize();
     //each Gishiki instance is binded with a newly created Environment
     if (!is_object(self::$executionEnvironment)) {
         self::$executionEnvironment = new Environment(filter_input_array(INPUT_SERVER), true, true);
     }
     //if the framework needs to be installed.....
     if (Environment::applicationExists()) {
         //fulfill the client request
         Environment::GetCurrentEnvironment()->FulfillRequest();
     } else {
         //show the no application page!
         echo file_get_contents(__DIR__ . DS . 'no_application.html');
     }
 }