Welcome Guest, Not a member yet? Register   Sign In
_remap() acting up
#1

[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


Messages In This Thread
_remap() acting up - by El Forum - 04-28-2010, 10:30 AM
_remap() acting up - by El Forum - 04-28-2010, 06:03 PM
_remap() acting up - by El Forum - 04-28-2010, 06:51 PM
_remap() acting up - by El Forum - 04-29-2010, 03:54 AM



Theme © iAndrew 2016 - Forum software by © MyBB