public function fakeUrl($route, $params)
	{
		if (preg_match_all('/\[[\s\S]+?]/', $route, $matches, PREG_SET_ORDER)) {
			for ($i=0;$i<count($matches);$i++) {
				$route = preg_replace('/\[[\s\S]+?]/', $params[$i], $route);
			}
		}
		return($route);
	}
public function fakeUrl($route, $params)
	{
		if (preg_match_all('/\[[\s\S]+?]/', $route, $matches, PREG_SET_ORDER)) {
			for ($i=0;$i<count($matches);$i++) {
				$route = preg_replace('/\[[\s\S]+?]/', $params[$i], $route);
			}
		}
		return($route);
	}
public function fakeUrl ( $ route , $ params ) { if ( preg_match_all ( '/\[[\s\S]+?]/' , $ route , $ matches , PREG_SET_ORDER ) ) { for ( $ i = 0 ; $ i < count ( $ matches ) ; $ i ++ ) { $ route = preg_replace ( '/\[[\s\S]+?]/' , $ params [ $ i ] , $ route ) ; } } return ( $ route ) ; }
Return the real url genereted from a named route
@param  string $route  The untouched route from the link_to function
@param  array  $params Data to be injected into the route
@return string         Return the generated url from the named route provided to the link_to function
Return the real url genereted from a named route