• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
URI help

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...

which comes from the controller test

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

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

Well what does the segment call actually return? Is your construct method properly formatted and is being called?

Opps! Got it. It was returning something completely different.

Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  

  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2021 MyBB Group.