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

[eluser]tzi0[/eluser]
Hi all
i have a _remap() function in my Admin controller:

Code:
function _remap($method)
    {
        if ($this->session->userdata("user_id"))
        {
            $this->$method();
        } else  
        {
            $this->index();
        }
    }

ok. now, if user requested a method with parameter, parameter doesnt pass:
Code:
function editcontent($id="none")
    {
        echo $id;
        if (is_numeric($id))
        { ... }
                ...
        }
$id always is "none". Why that? Have i to write something else in my _remap() function?


Messages In This Thread
remapping - by El Forum - 08-30-2010, 03:42 AM
remapping - by El Forum - 08-30-2010, 04:03 AM
remapping - by El Forum - 08-30-2010, 04:09 AM
remapping - by El Forum - 08-30-2010, 04:11 AM
remapping - by El Forum - 08-30-2010, 04:31 AM
remapping - by El Forum - 08-30-2010, 04:57 AM
remapping - by El Forum - 08-30-2010, 06:23 AM



Theme © iAndrew 2016 - Forum software by © MyBB