Methods

__construct()

__construct($path, $translation, $case_sensitive, $strip_extension, $name) 

Parameters

$path

$translation

$case_sensitive

$strip_extension

$name

Parses a route match and returns the controller, action and params.

matched(string $uri, array $named_params) : object

Parameters

$uri

string

The matched route

$named_params

array

Named parameters

Returns

object$this

Attempts to find the correct route for the given URI

parse(\Request $request) : array

Parameters

$request

\Request

The URI object

Returns

array

Compiles a route.

compile() : string

Replaces named params and regex shortcuts.

Returns

stringcompiled route.

 Properties

 

<p>default controller action</p>

$action : string

 

$callable

$callable : \Fuel\Core\closure

 

<p>route case match behaviour</p>

$case_sensitive : boolean

 

<p>controller name</p>

$controller : string

 

<p>controller path</p>

$controller_path : string

 

<p>route directory</p>

$directory : string

 

<p>method params array</p>

$method_params : array

 

<p>route module</p>

$module : string

 

<p>route name</p>

$name : string

 

<p>named params array</p>

$named_params : array

 

<p>route path</p>

$path : string

 

<p>segments array</p>

$segments : array

 

<p>whether to strip the extension from the URI</p>

$strip_extension : boolean

 

<p>route translation</p>

$translation : mixed

 

<p>the compiled route regex</p>

$search : mixed