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

(This post was last modified: 05-06-2024, 05:25 AM by mywebmanavgat.)

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()
 {

 
$this->uri = new \CodeIgniter\HTTP\URI(str_replace(base_url(),'',current_url()));
 } 
Reply




Theme © iAndrew 2016 - Forum software by © MyBB