This forum has moved to a new location and is in read-only mode. Please visit talk.octobercms.com to access the new location.

illreadlater13656
illreadlater13656

Hi, I'm trying catch some $_GET params in backend controller, but the

    Input::all();

always empty I came up with solution

    $requestParams = Request::getFacadeRoot()->server->all();
    $getParams     = [ ];
    $query         = explode('?', $requestParams['REQUEST_URI']);
    if (count($query) > 1) {
        parse_str($query[1], $getParams);
    }

but something tells me that there is a better way. I appreciate any advice.

Last updated

1-1 of 1

You cannot edit posts or make replies: the forum has moved to talk.octobercms.com.