_init()
add()
delete()
get()
process()
check_class()
get_prefix()
parse_match()
parse_segments()
$routes
$prefix
_init()
add(string $path, string | array | \Fuel\Core\Route $options, bool $prepend, bool $case_sensitive)
string
stringarray\Fuel\Core\Routeeither the translation for $path, an array for verb routing or an instance of Route
boolwhether to prepend the route(s) to the routes array
boolwhether to check case sensitive
delete(string | array $path, bool $case_sensitive)
stringarrayroute path, or array of route paths
boolwhether to check case sensitive
get(string $name, array $named_params) : string
This will return the FULL url (including the base url and index.php).
WARNING: Reverse routing with routes that contains a regex is still experimental. The simple ones work, but complex ones might fail!
Usage:
stringthe name of the route
arraythe array of named parameters
stringthe full url for the named routeprocess(\Request $request, bool $route) : mixed
\Requestthe given Request object
boolwhether to use the defined routes or not
mixedthe match array or falsecheck_class(string $class) : bool
stringThe class name to check.
\Exception |
|---|
boolTrue if $class exists, false otherwise.get_prefix() : string
stringPrefix as defined in config controller_prefix.parse_segments($segments, $namespace, $module)
$routes
$prefix
This allows you to namespace controllers