Welcome Guest, Not a member yet? Register   Sign In
Helper - Call to undefined function
#7

The URI class needs an actual URI to work with. So instead of creating one directly, you can get the current URI from the current request:


PHP Code:
// $uri = new \CodeIgniter\HTTP\URI();

$request = \Config\Services::request();

$uri $request->uri
Reply


Messages In This Thread
Helper - Call to undefined function - by sjender - 10-16-2020, 03:09 AM
RE: Helper - Call to undefined function - by daveontheciforum - 03-01-2021, 02:28 AM



Theme © iAndrew 2016 - Forum software by © MyBB