Cannot access protected property CodeIgniter\HTTP\IncomingRequest::$uri |
Even if you change the function, you need to edit all your code one by one. Because in the new update, the application folder is also included in the segment.
This has not been this way since ci3. Why did you really do this? In order not to edit all my code, I applied the following in BaseController. PHP Code: public function __construct()
Just replace uri to getUri.
PHP Code: // $this->language->setLocale($this->session->lang);
Hello everyone, just replace the old code below:
PHP Code: $request = \Config\Services::request(); 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 |
Welcome Guest, Not a member yet? Register Sign In |