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

(This post was last modified: 07-27-2024, 04:12 PM by joeedman.)

Just replace uri to getUri.

PHP Code:
      // $this->language->setLocale($this->session->lang); 
69        // Preload any models, libraries, etc, here.    
70 
71        
// Determine whether to include the template or not
72            $excludedUrls = ['home','/','',NULL'about''login','register','users','/users/register','users/registerUser','registerUser','blog''contact'];
73 
74            
// Get the request URI segment 1
75            $requestUri $this->request->getUri()->getSegments(); // <<<<<<<
76            $this->includeTemplate false;
77            foreach ($requestUri as $urisegment){
78 
Reply


Messages In This Thread
RE: Cannot access protected property CodeIgniter\HTTP\IncomingRequest::$uri - by joeedman - 07-27-2024, 11:12 AM



Theme © iAndrew 2016 - Forum software by © MyBB