Created
August 29, 2015 13:07
-
-
Save solepixel/0b2a18699e74e0abf1e0 to your computer and use it in GitHub Desktop.
CodeIgniter _remap function.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
function _remap($method) | |
{ | |
if (method_exists($this, $method)){ | |
$this->$method($this->uri->segment(3)); | |
} else { | |
$this->index($method); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment