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

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

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

But when i get the url to run ending like this

Quote:delete_process/1


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

What's the cause?
#2

[eluser]deczo[/eluser]
If these:
Code:
delete_process/1
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