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

The Yaf_Route_Static class

Yaf_Route_Static is the default route of Yaf_Router: it parses the URI path as /module/controller/action segments and is designed to handle most routing needs out of the box.

Intro

Yaf_Route_Static is the default route of Yaf_Router: it parses the URI path as /module/controller/action segments and is designed to handle most routing needs out of the box.

Note

It is unnecessary to instantiate a Yaf_Route_Static, or to add it to the route stack of Yaf_Router: there is always one present in the stack, and it is always tried last.

Class synopsis

class Yaf_Route_Static { }

Yaf-route-static

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