Created
November 29, 2012 12:27
-
-
Save assertchris/4168707 to your computer and use it in GitHub Desktop.
A man's PHP require!
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
| if (!function_exists("_path")) | |
| { | |
| function _path() | |
| { | |
| return dirname(__DIR__); | |
| } | |
| } | |
| if (!function_exists("_require")) | |
| { | |
| function _require() | |
| { | |
| return require(str_replace("./", _path() . "/", $path) . ".php"); | |
| } | |
| } | |
| _require("./application/routes"); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment