[eluser]Samuurai[/eluser]
Hi everyone,
It's probably not acting up at all.. I probably just don't know the correct usage.
Here's my code:
Code:
function _remap()
{
if($this->uri->segment(3) == "create")
$this->create();
if($this->uri->segment(3) != "create" OR $this->uri->segment(3) != "view" OR $this->uri->segment(3) != "update" OR is_numeric($this->uri->segment(3)))
{
$this->index($this->uri->segment(3),$this->uri->segment(4),$this->uri->segment(5));
}
}
The only reason i'm using it is because I need to pass variables via the URI to the index() function. This works fine, but then all my other functions (create, view, update) don't work. They seem to go to index() instead.
I tried first ignoring them (see the long if statement). Then I tried the first if statement..both to no avail.
Can anyone spot any obvious flaws in my code?
Thanks