classes/Ergo/Routing/Router.php
public function routeByName($name)
	{
		if (isset($this->_routes[$name]))
				return $this->_routes[$name];

		if (isset($this->_customRoutes[$name]))
				return $this->_customRoutes[$name];

		throw new LookupException("No route named '$name'");
	}
public function routeByName($name)
	{
		if (isset($this->_routes[$name]))
				return $this->_routes[$name];

		if (isset($this->_customRoutes[$name]))
				return $this->_customRoutes[$name];

		throw new LookupException("No route named '$name'");
	}
public function routeByName ( $ name ) { if ( isset ( $ this -> _routes [ $ name ] ) ) return $ this -> _routes [ $ name ] ; if ( isset ( $ this -> _customRoutes [ $ name ] ) ) return $ this -> _customRoutes [ $ name ] ; throw new LookupException ( "No route named '$name'" ) ; }
Looks up a route by name
@return Route
Looks up a route by name