/** * Gets a full url from the route name * * @param {string} $name the name of the route * @param {array} $params the route parameters. * * @return string * @author Dan Cox */ public static function route($name, array $params = array()) { return "//" . BASE_URL . Route::router()->generate($name, $params); }
private static function init() { if (!is_object(self::$router)) { self::$router = new Router(); } }