11-25-2019, 02:56 AM
Hello,
I would like to know if there is an equivalent to "$this->uri->rsegment()" in CI4?
I'm searching in the doc but I don't find anything about that.
I tried "$this->request->uri->getSegments()" in my default routed controller but I get an array with two empty strings.
My default route: $routes->get('/', 'Corporate/Landing::index');
GetSegments output: ["",""]
I would like to know if there is an equivalent to "$this->uri->rsegment()" in CI4?
I'm searching in the doc but I don't find anything about that.
I tried "$this->request->uri->getSegments()" in my default routed controller but I get an array with two empty strings.
My default route: $routes->get('/', 'Corporate/Landing::index');
GetSegments output: ["",""]