abdfahim
Well-known member
I am designing a page with a PHP callback function. How can I collect all the GET parameters from the URL?
I know how to get each parameter separately, but I want to get all in an array in a single go, if possible
For example, for a page like this:
I know how to get each parameter separately, but I want to get all in an array in a single go, if possible
For example, for a page like this:
pages/my-page/?param1=asd¶m2=fgh¶m3=vbn
Code:
public static function myPage(\XF\Pub\Controller\AbstractController $controller, \XF\Mvc\Reply\AbstractReply &$reply)
{
$params = $controller->request()->filter('param1','string');
}