Route
in package
Pop route class
Tags
Table of Contents
- $router : Router
- Router object
- getRouter() : Router
- Method to get the router
- hasRouter() : bool
- Method to check if the router has been registered
- setRouter() : void
- Method to set the router
- url() : string
- Get URL route string for the named route
Properties
$router
Router object
protected
static Router
$router
= null
Methods
getRouter()
Method to get the router
public
static getRouter() : Router
Return values
Router —hasRouter()
Method to check if the router has been registered
public
static hasRouter() : bool
Return values
bool —setRouter()
Method to set the router
public
static setRouter(Router $router) : void
Parameters
- $router : Router
Return values
void —url()
Get URL route string for the named route
public
static url(string $routeName[, mixed $params = null ][, bool $fqdn = false ]) : string
Parameters
- $routeName : string
- $params : mixed = null
- $fqdn : bool = false