• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
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

Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2020 MyBB Group.