Welcome Guest, Not a member yet? Register   Sign In
URI help
#1

[eluser]agammill[/eluser]
My segment doesn't want to work? I've tried different numbers, and I've tried different parts of the URL.

The URL for the page shows this...

http://www.mywebsite.com/test/create
which comes from the controller test

In the library...
In the function_constructor...
Code:
$this->CI =& get_instance();

In the find function...
Code:
if($this->CI->uri->segment(2) == 'create'){ //also tried (1) == 'test'
//this never triggers
}else{
//this always runs
}


Messages In This Thread
URI help - by El Forum - 09-07-2012, 07:08 PM
URI help - by El Forum - 09-07-2012, 07:36 PM
URI help - by El Forum - 09-07-2012, 08:08 PM



Theme © iAndrew 2016 - Forum software by © MyBB