Welcome Guest, Not a member yet? Register   Sign In
Url segment in ci4
#7

(11-02-2019, 08:03 AM)donpwinston Wrote: In a controller:

$segments = $this->request->uri->getSegments();

$segment =  $this->request->uri->getSegment(1);


I actually created an account just so I could thank this post - agree with the OP that the CI documentation is overly complicated & confusing
Reply


Messages In This Thread
Url segment in ci4 - by seunex - 11-02-2019, 01:41 AM
RE: Url segment in ci4 - by donpwinston - 11-02-2019, 08:03 AM
RE: Url segment in ci4 - by prikkles - 04-17-2020, 03:27 AM
RE: Url segment in ci4 - by Cathal - 09-01-2020, 07:46 PM
RE: Url segment in ci4 - by InsiteFX - 11-02-2019, 10:51 AM
RE: Url segment in ci4 - by wdeda - 11-08-2019, 06:58 PM
RE: Url segment in ci4 - by plaztic - 01-25-2020, 11:55 AM
RE: Url segment in ci4 - by demyr - 09-01-2020, 11:27 PM



Theme © iAndrew 2016 - Forum software by © MyBB