_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
string
array
\Fuel\Core\Route
either the translation for $path, an array for verb routing or an instance of Route
bool
whether to prepend the route(s) to the routes array
bool
whether to check case sensitive
delete(string | array $path, bool $case_sensitive)
string
array
route path, or array of route paths
bool
whether 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:
string
the name of the route
array
the array of named parameters
string
the full url for the named routeprocess(\Request $request, bool $route) : mixed
\Request
the given Request object
bool
whether to use the defined routes or not
mixed
the match array or falsecheck_class(string $class) : bool
string
The class name to check.
\Exception |
---|
bool
True if $class exists, false otherwise.get_prefix() : string
string
Prefix as defined in config controller_prefix.parse_segments($segments, $namespace, $module)
$routes
$prefix
This allows you to namespace controllers