Administration

Block core/ini/router

class B_core__ini__router extends \Cascade\Core\Block

Description

Match request URI or given path against routes and pick first matching
route. Then set outputs as specified by selected route.

"#" section contans default values. Section name is matched pattern,
where "$" prefixed names are used to remember part of URI and then set
it to output when rule matches. Two stars at the end of path match rest
of path and this tail is available on 'path_tail' output.

Example: See routes.examples.ini.php.

Inputs

InputDefault valueDefault connectionComment
pathnullPath to match.
confignullConfiguration or filename where configuration is.
canonize_pathtrueRedirect to canonical form of path? (HTTP GET method only.)

Outputs

OutputComment
*Values from matched rule.

Cascade