Skip to content

Request variables

Radoslav Georgiev edited this page Sep 3, 2016 · 1 revision

An instance of the Rila\Request object is available in the default view context as request.

You can seek the properties you need as properties of the request object. This way, it will check the $_REQUEST array. If you need to, you can also use request.get.* and request.post.* to access the appropriate array:

{# Look for a 'name' in $_REQUEST #}
{{ request.name }}

{# Look for a 'name' in $_POST #}
{{ request.post.name }}

{# Look for a 'name' in $_GET #}
{{ request.get.name }}

Next article: Theme object