Example #1
0
            }
        } else {
            if ($ret) {
                return self::$_uri[$keye];
            } else {
                echo self::$_uri[$keye];
            }
        }
    }
    public static function ini()
    {
        include_once "../app/Routes.php";
        Routes::run();
    }
    public static function filter($filter, $call, $falsecall = null)
    {
        //if($filter=="auth") self::$_call_auth=$call;
        //
        self::$_filters[$filter] = $call;
        if (!is_null($falsecall)) {
            self::$_falsecall[$filter] = $falsecall;
        }
    }
    public static function current()
    {
        return self::$current;
    }
}
Routes::get(Config::get('panel.route'), function () {
    Page::put('panel.index');
});