Property | Type | Description | |
---|---|---|---|
$class | string | Current class name | |
$config | object | CI_Config class object | |
$default_controller | string | Default controller (and method if specific) | |
$directory | string | Sub-directory that contains the requested controller class | |
$enable_query_strings | boolean | Determines whether to use GET parameters or segment URIs | |
$method | string | Current method name | |
$routes | array | List of routes | |
$translate_uri_dashes | boolean | Determines whether dashes in controller & method segments should be automatically replaced by underscores. |
Method | Description | |
---|---|---|
__construct ( array $routing = NULL ) : void | Class constructor | |
fetch_class ( ) : string | Fetch the current class | |
fetch_directory ( ) : string | Fetch directory | |
fetch_method ( ) : string | Fetch the current method | |
set_class ( string $class ) : void | Set class name | |
set_directory ( string $dir, boolean $append = FALSE ) : void | Set directory name | |
set_method ( string $method ) : void | Set method name |
Method | Description | |
---|---|---|
_parse_routes ( ) : void | Parse Routes | |
_set_default_controller ( ) : void | Set default controller | |
_set_request ( array $segments = [] ) : void | Set request route | |
_set_routing ( ) : void | Set route mapping | |
_validate_request ( array $segments ) : mixed | Validate request |
public __construct ( array $routing = NULL ) : void | ||
$routing | array | |
return | void |
protected _parse_routes ( ) : void | ||
return | void |
protected _set_default_controller ( ) : void | ||
return | void |
protected _set_request ( array $segments = [] ) : void | ||
$segments | array | URI segments |
return | void |
protected _set_routing ( ) : void | ||
return | void |
protected _validate_request ( array $segments ) : mixed | ||
$segments | array | URI segments |
return | mixed | URI segments |
public fetch_directory ( ) : string | ||
return | string |
public fetch_method ( ) : string | ||
return | string |
public set_method ( string $method ) : void | ||
$method | string | Method name |
return | void |
public string $default_controller | ||
return | string |
public string $directory | ||
return | string |
public bool $enable_query_strings | ||
return | boolean |
public bool $translate_uri_dashes | ||
return | boolean |