Beispiel #1
0
 public static function __callStatic($name, $params)
 {
     static $initialized = FALSE;
     if ($initialized === FALSE) {
         self::$engine = new \mifan\Engine();
         $initialized = TRUE;
     }
     return \mifan\core\Dispatcher::execute(array(self::$engine, $name), $params);
 }
Beispiel #2
0
<?php

require "mifan/Mifan.php";
Mifan::route("/", function () {
    echo "hello world!";
});
Mifan::start();