$request
The Request
class provides a simple API to inspect incoming requests.
-
new Request()
-
$request->auth()
-
$request->body()
-
$request->cli()
-
$request->csrf()
-
$request->data()
-
$request->detectRequestMethod()
-
$request->domain()
-
$request->file()
-
$request->files()
-
$request->get()
-
$request->header()
-
$request->headers()
-
$request->is()
-
$request->method()
-
$request->params()
-
$request->path()
-
$request->query()
-
$request->ssl()
-
$request->url()
How to get a $request
object
The $request
object is available via the $kirby
object:
Examples
With the object in place, you have access to all the methods listed above.
Get a specific variable from the query string
Get the Params object
The $params
object contains all URL parameters