Documentation

Route
in package

Pop route class

Tags
category

Pop

author

Nick Sagona, III dev@nolainteractive.com

copyright

Copyright (c) 2009-2021 NOLA Interactive, LLC. (http://www.nolainteractive.com)

license

http://www.popphp.org/license New BSD License

version
3.7.0

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
Tags
throws
Exception
Return values
string

Search results