XF 2.1 Possible to use $_GET variable in template?

FloV

Well-known member
Licensed customer
Hi there,

is it possible to use the $_GET variable in templates? I would like to pass some stuff via links to another page inside XF.

Hope thats possible. :)

Thanks a lot in advance

Florian
 
Getting just $_GET is tricky, however if you don't mind if param is from $_POST or $_GET:

$xf.request.get('param')

Keep in mind that this is sanitized (in case you need the raw value)
 
Back
Top Bottom