Welcome Guest, Not a member yet? Register   Sign In
Equivalent to "uri rsegment"?


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: ["",""]

Messages In This Thread
Equivalent to "uri rsegment"? - by RedskyThirty - 11-25-2019, 02:56 AM
RE: Equivalent to "uri rsegment"? - by XTAZ - 11-25-2019, 02:43 PM

Theme © iAndrew 2016 - Forum software by © MyBB