Welcome Guest, Not a member yet? Register   Sign In
URL / Controler realted
#4

[eluser]exodus7[/eluser]
xwero,

Thanks for the quick reply. This is making more sense - In your example,
Code:
if($this->uri->segment(3) == 'locations'){ /* do something */ }
It only checks if segment 3 = 'locations', correct?

So if I had more than one occurrence of the the same name for the 3rd URI segment, Im assuming I would have to verify the second & third segment to = specific values like so:
Code:
if($this->uri->segment(2) == 'service_name' && $this->uri->segment(3) == 'location'){ /* some code */ }
Is this correct?


Messages In This Thread
URL / Controler realted - by El Forum - 12-26-2007, 09:35 AM
URL / Controler realted - by El Forum - 12-26-2007, 09:42 AM
URL / Controler realted - by El Forum - 12-26-2007, 04:20 PM
URL / Controler realted - by El Forum - 12-26-2007, 04:21 PM
URL / Controler realted - by El Forum - 12-26-2007, 04:27 PM
URL / Controler realted - by El Forum - 12-26-2007, 04:31 PM
URL / Controler realted - by El Forum - 12-26-2007, 04:49 PM
URL / Controler realted - by El Forum - 12-26-2007, 05:07 PM
URL / Controler realted - by El Forum - 12-26-2007, 07:15 PM
URL / Controler realted - by El Forum - 12-26-2007, 11:21 PM
URL / Controler realted - by El Forum - 12-27-2007, 01:12 AM
URL / Controler realted - by El Forum - 12-27-2007, 09:01 AM
URL / Controler realted - by El Forum - 12-27-2007, 09:37 AM



Theme © iAndrew 2016 - Forum software by © MyBB