public static function route( $name, $params = array() )
	{
		$href = null;
		foreach ( self::$routes as $routePath => $routeDesc ) {
			if( is_array( $routeDesc ) ){
				if( $name == $routeDesc[1] ){
					$href = $routePath;
					for( $i = 0; $i < count($params); $i++){
						$href = preg_replace('#{(.*?)}#', $params[$i], $href, 1);
					}
				}
			}
		}
		return $href;
	}
public static function route( $name, $params = array() )
	{
		$href = null;
		foreach ( self::$routes as $routePath => $routeDesc ) {
			if( is_array( $routeDesc ) ){
				if( $name == $routeDesc[1] ){
					$href = $routePath;
					for( $i = 0; $i < count($params); $i++){
						$href = preg_replace('#{(.*?)}#', $params[$i], $href, 1);
					}
				}
			}
		}
		return $href;
	}
public static function route ( $ name , $ params = array ( ) ) { $ href = null ; foreach ( self :: $ routes as $ routePath => $ routeDesc ) { if ( is_array ( $ routeDesc ) ) { if ( $ name == $ routeDesc [ 1 ] ) { $ href = $ routePath ; for ( $ i = 0 ; $ i < count ( $ params ) ; $ i ++ ) { $ href = preg_replace ( '#{(.*?)}#' , $ params [ $ i ] , $ href , 1 ) ; } } } } return $ href ; }
Static function that helps you generate links effortlessly and pass parameters to them, thus enabling to generate dynamic links

@param string $name name of the route for which the link has to be generated
@param array $params An array of parameters that are replaced in the route if it contains wildcards
For e.g. if route is /name/{i}/{a} and parameters passed are 1, aps then link generated will be /name/1/aps
Static function that helps you generate links effortlessly and pass parameters to them thus enabling to generate dynamic links