Request
Extends Object. A "request" variable containing a Request object is automatically instantiated on all pages.
Properties |
---|
back
String
The absolute url to the HTTP REFERER or |
isHttps
Boolean
True if the URL has an HTTPS protocol, else false. |
path
String
The relative URL of the current page excluding the query string. |
referrer
URL
URL object of the referrer url if it exists. |
Methods |
---|
belongsTo([Array:urls])
Boolean
Checks whether the current url is, or is a child of, the supplied url or array of urls.
|
param(String:key [, String:default])
String
| Object
Get a query string parameter from the current URL.
|
parameter(String:key [, String:default])
Alias of |
parameters([Array:exclusions])
Object
Get all query string parameters.
You can exclude returned parameters by passing through either a string or an array.
|
uri([Object:parameters])
Url
Get the full url of the current page including the query string.
You can also append or modify query string parameters to the uri by passing through an associative array of parameters.
|