Get the URL parameters in "FrontendPrePageResolve" delegate
This is an open discussion with 3 replies, filed under Extensions.
Search
System parameters and
URL Parameters aren’t created created until after the FrontendPrePageResolve
delegate has fired.
URL Parameters are just a fancy $_GET
array, so you can already get them, at least in this case via $_GET['language']
and `$_GET[‘region’].
You can then query the database and refill the $row
array, all from within the FrontendPrePageResolve
delegate.
I guess you can access $_GET['symphonypage']
and explode it by /
. Those parameters will not be named though (as opposed to the ones in your pages).
lol … $_GET :))
thanks for the reminder.
Create an account or sign in to comment.
My extension depends on Language Redirect and I need
language
andregion
URL parameters which are set in the .htaccess file.This is the function that implements the
FrontendPrePageResolve
delegate:Is there a way to see the URL parameters inside the
FrontendPrePageResolve
delegate?The delegate
FrontendParamsResolve
gets called after the page is resolved so it’s not good. I need access to the parameters before the page is resolved.Thank you.