I have multi language URI such as /en-US/my-path
I can update $_SERVER[‘REQUEST_URI’] to /my-path successfully to prevent those language URI to be mess with.
But I cannot update the request in Container class.
echo $request->getUri()->getPath()."...<br>\n"; $request2 = $this->CI->request; echo $request2->getUri()->getPath()."...<br>\n";
From the code above the first $request is from the route or controller, its result is “my-path…” which is correctly.
But the second $request or $request2 is get from Container class, its result is “en-US/my-path…” which is incorrect!
How to update the request in container class so that I can access it anywhere with the same values?