lib/Bistro/Router/Router.php
public function url($name, $params = array())
	{
		if ( ! array_key_exists($name, $this->routes))
		{
			throw new \UnexpectedValueException("A route with the name {$name} was not found");
		}

		$route = $this->routes[$name];
		return $route->url($params);
	}
public function url($name, $params = array())
	{
		if ( ! array_key_exists($name, $this->routes))
		{
			throw new \UnexpectedValueException("A route with the name {$name} was not found");
		}

		$route = $this->routes[$name];
		return $route->url($params);
	}
public function url ( $ name , $ params = array ( ) ) { if ( ! array_key_exists ( $ name , $ this -> routes ) ) { throw new \ UnexpectedValueException ( "A route with the name {$name} was not found" ) ; } $ route = $ this -> routes [ $ name ] ; return $ route -> url ( $ params ) ; }
Reverse routing helper.

@throws \UnexpectedValueException

@param  string $name   The route name
@param  array  $params Route parameters
@return string         The route url
Reverse routing helper .