Welcome Guest, Not a member yet? Register   Sign In
remapping controllers' function calls: what about arguments?
#3

[eluser]Michael Wales[/eluser]
When you use _remap you can not pass arguments to the function, instead you use the URI class:

[code]function _remap($method) {
if ($method == 'index') {
$this->index();
} else {
$this->somethingelse();
}
}

function index() {
$param1 = $this->uri->segment(2);
$param2 = $this->uri->segment(3);
}


Messages In This Thread
remapping controllers' function calls: what about arguments? - by El Forum - 10-23-2007, 12:23 PM



Theme © iAndrew 2016 - Forum software by © MyBB