Example #1
0
 /**
  * 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);
 }
Example #2
0
 private static function init()
 {
     if (!is_object(self::$router)) {
         self::$router = new Router();
     }
 }