UrlGenerator
interface UrlGenerator (View source)
Methods
string
current()
Get the current URL for the request.
string
to(
string $path,
mixed $extra = array(),
bool $secure = null)
Generate a absolute URL to the given path.
string
secure(
string $path,
array $parameters = array())
Generate a secure, absolute URL to the given path.
string
asset(
string $path,
bool $secure = null)
Generate a URL to an application asset.
string
route(
string $name,
mixed $parameters = array(),
bool $absolute = true)
Get the URL to a named route.
string
action(
string $action,
mixed $parameters = array(),
bool $absolute = true)
Get the URL to a controller action.
$this
setRootControllerNamespace(
string $rootNamespace)
Set the root controller namespace.
Details
at line line 22
string
to(
string $path,
mixed $extra = array(),
bool $secure = null)
Generate a absolute URL to the given path.
at line line 31
string
secure(
string $path,
array $parameters = array())
Generate a secure, absolute URL to the given path.
at line line 40
string
asset(
string $path,
bool $secure = null)
Generate a URL to an application asset.
at line line 52
string
route(
string $name,
mixed $parameters = array(),
bool $absolute = true)
Get the URL to a named route.
at line line 62
string
action(
string $action,
mixed $parameters = array(),
bool $absolute = true)
Get the URL to a controller action.
at line line 70
$this
setRootControllerNamespace(
string $rootNamespace)
Set the root controller namespace.