Welcome Guest, Not a member yet? Register   Sign In
using uri parameter

I'm trying to get a function within a controller to use the uri paramenter to decide which code to process, like this

if ($this->uri->segment(3) == 1)

But when i get the url to run ending like this


I get a blank page instead of the page that's supposed to be loaded if parmeter 1 is true.

What's the cause?

If these:
are all the segments, then it is 2nd segment you want to check.
Otherwise check all the segments by calling $this->uri->segment_array() and you shall find the problem.

Theme © iAndrew 2016 - Forum software by © MyBB