Templating\Helper\RouterHelper (Bundle\FrameworkBundle)
Symfony\Bundle\FrameworkBundle\Templating\Helper\RouterHelper
class RouterHelper extends Helper
RouterHelper manages links between pages in a template context.
Methods
setCharset(string $charset) Sets the default charset. | from Helper | |
string | getCharset() Gets the default charset. | from Helper |
__construct(UrlGeneratorInterface $router) Constructor. | ||
string | path(string $name, mixed $parameters = array(), bool $relative = false) Generates a URL reference (as an absolute or relative path) to the route with the given parameters. | |
string | url(string $name, mixed $parameters = array(), bool $schemeRelative = false) Generates a URL reference (as an absolute URL or network path) to the route with the given parameters. | |
string | getName() Returns the canonical name of this helper. |
Details
public setCharset(string $charset)
Sets the default charset.
public string getCharset()
Gets the default charset.
public __construct(UrlGeneratorInterface $router)
Constructor.
public string path(string $name, mixed $parameters = array(), bool $relative = false)
Generates a URL reference (as an absolute or relative path) to the route with the given parameters.
public string url(string $name, mixed $parameters = array(), bool $schemeRelative = false)
Generates a URL reference (as an absolute URL or network path) to the route with the given parameters.
public string getName()
Returns the canonical name of this helper.
© 2004–2016 Fabien Potencier
Licensed under the MIT License.
http://api.symfony.com/3.0/Symfony/Bundle/FrameworkBundle/Templating/Helper/RouterHelper.html