Welcome Guest, Not a member yet? Register   Sign In
pass parameter to index function
#3

[eluser]pistolPete[/eluser]
You could also use the _remap() function, e.g.:
Code:
function _remap($method)
{
    if (method_exists($this, $method))
    {
          $this->$method($this->uri->segment(3));
    }
    else
    {
          $this->index($method);
    }
}

Then you would use ..../somecontroller/1 without the index parameter.


Messages In This Thread
pass parameter to index function - by El Forum - 01-28-2010, 03:27 PM
pass parameter to index function - by El Forum - 01-28-2010, 03:36 PM
pass parameter to index function - by El Forum - 01-28-2010, 05:59 PM
pass parameter to index function - by El Forum - 02-19-2010, 06:36 AM



Theme © iAndrew 2016 - Forum software by © MyBB