Created
June 14, 2011 19:48
-
-
Save gr4y/1025708 to your computer and use it in GitHub Desktop.
Another reason why PHP sucks: i just wanted to strip the params and the first / in the uri.
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
| private function _resolve_controller_action_array(){ | |
| $uri = current( explode('?', server::get('request_uri'), 2) ); | |
| $pos = stripos ( $uri, '/' ); | |
| $len = strlen ( $uri ); | |
| return explode( '/', trim( substr( $uri, $pos + 1, $len ) ) ); | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment