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

The Yaf_Route_Supervar class

Yaf_Route_Supervar is a built-in route that resolves the request target from a single GET parameter (the supervar). The value of that parameter is parsed the same way as PATH_INFO, so a request such as /?r=/user/list maps to controller user and action list when the supervar name is r.

Intro

Yaf_Route_Supervar is a built-in route that resolves the request target from a single GET parameter (the supervar). The value of that parameter is parsed the same way as PATH_INFO, so a request such as /?r=/user/list maps to controller user and action list when the supervar name is r.

Class synopsis

class Yaf_Route_Supervar { }

Properties

_var_name

Yaf-route-supervar

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