예제 #1
0
파일: Router.php 프로젝트: gluephp/glue
 /**
  * Resolve a named route
  *
  * @param   $name
  * @param   array   $args
  * @param   boolean $noInitialSlash
  * @return  string
  */
 public function route($name, array $args = null, $noInitialSlash = false)
 {
     $route = ltrim(parent::route($name, $args), '/');
     return $noInitialSlash ? $route : '/' . $route;
 }