$config
$config : object
CI_Config class object
Router Class
Parses URIs and determines routing
set_method(string $method) : void
Set method name
string | $method | Method name |
None found |
None found |
set_directory(string $dir, boolean $append = FALSE) : void
Set directory name
string | $dir | Directory name |
boolean | $append | Whether we're appending rather than setting the full value |
None found |
fetch_directory() : string
Fetch directory
Feches the sub-directory (if any) that contains the requested controller class.
None found |
_set_routing() : void
Set route mapping
Determines what should be served based on the URI request, as well as any "routes" that have been set in the routing config file.
None found |
_set_request(array $segments = array()) : void
Set request route
Takes an array of URI segments as input and sets the class/method to be called.
array | $segments | URI segments |
used-by |
CI_Router::_parse_routes() |
---|
None found |
_validate_request(array $segments) : mixed
Validate request
Attempts validate the URI request and determine the controller path.
array | $segments | URI segments |
URI segments
used-by |
CI_Router::_set_request() |
---|
_parse_routes() : void
Parse Routes
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.
None found |