Documentation

Route
in package

Pop route class

Tags
category

Pop

author

Nick Sagona, III dev@nolainteractive.com

copyright

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

license

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

version
4.2.0

Table of Contents

Properties

$router  : Router|null
Router object

Methods

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|null $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

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

        
On this page

Search results