core-bundle/src/Resources/contao/library/Contao/Template.php
public function route($strName, $arrParams=array())
	{
		$strUrl = System::getContainer()->get('router')->generate($strName, $arrParams);
		$strUrl = substr($strUrl, \strlen(Environment::get('path')) + 1);

		return ampersand($strUrl);
	}
public function route($strName, $arrParams=array())
	{
		$strUrl = System::getContainer()->get('router')->generate($strName, $arrParams);
		$strUrl = substr($strUrl, \strlen(Environment::get('path')) + 1);

		return ampersand($strUrl);
	}
public function route ( $ strName , $ arrParams = array ( ) ) { $ strUrl = System :: getContainer ( ) -> get ( 'router' ) -> generate ( $ strName , $ arrParams ) ; $ strUrl = substr ( $ strUrl , \ strlen ( Environment :: get ( 'path' ) ) + 1 ) ; return ampersand ( $ strUrl ) ; }
Return a route relative to the base URL

@param string $strName   The route name
@param array  $arrParams The route parameters

@return string The route
Return a route relative to the base URL