php8.5
Home/ Manual/ reference / yaf/ The Yaf_Route_Rewrite class

The Yaf_Route_Rewrite class

Yaf_Route_Rewrite is a built-in route that maps a fixed path pattern to a module, controller and action. The pattern may contain named placeholders (:name, whose value is set as a request parameter) and a trailing * wildcard that captures the remaining segments as key/value pairs.

Intro

Yaf_Route_Rewrite is a built-in route that maps a fixed path pattern to a module, controller and action. The pattern may contain named placeholders (:name, whose value is set as a request parameter) and a trailing * wildcard that captures the remaining segments as key/value pairs.

For usage, please see the example section of Yaf_Route_Rewrite::__construct.

Class synopsis

class Yaf_Route_Rewrite { }

Properties

_route
_default
_verify

Yaf-route-rewrite

Source: reference/yaf/yaf-route-rewrite.xml · from the official PHP manual (php/doc-en)