Welcome Guest, Not a member yet? Register   Sign In
Cannot access protected property CodeIgniter\HTTP\IncomingRequest::$uri
#13

Hello everyone, just replace the old code below:


PHP Code:
$request = \Config\Services::request();
$uri $request->uri

By direct call to the service:


PHP Code:
$uri service('uri'); 

I had the same problem when migrating from version 4.4.3 to the current version 4.5.6
Reply


Messages In This Thread
RE: Cannot access protected property CodeIgniter\HTTP\IncomingRequest::$uri - by eduardofiorini - 12-29-2024, 01:19 PM



Theme © iAndrew 2016 - Forum software by © MyBB