$directory $directory : string Sub-directory that contains the requested controller class Type string
$default_controller $default_controller : string Default controller (and method if specific) Type string
_set_routing() _set_routing() : void Set the route mapping This function determines what should be served based on the URI request, as well as any "routes" that have been set in the routing config file.
_set_request() _set_request( $segments = array()) : void Set the Route This function takes an array of URI segments as input, and sets the current class/method Parameters $segments
_validate_request() _validate_request( $segments) : array Validates the supplied segments. Attempts to determine the path to the controller. Parameters $segments Returns array
_parse_routes() _parse_routes() : void Parse Routes This function matches any routes that may exist in the config/routes.php file against the URI to determine if the class/method need to be remapped.
fetch_directory() fetch_directory() : string Fetch the sub-directory (if any) that contains the requested controller class Returns string
_set_overrides() _set_overrides( $routing) : null Set the controller overrides Parameters $routing Returns null