Archive for February, 2011

Remap function for codeigniter esque framework

Adding this function to any controller will enable your application to pass URI parameters to the index function. Which currently it will not do by default.

function _remap($method){
    if (method_exists($this, $method)){
        $this->$method();
    }else {
        $this->index($method);
    }
}