PHP 8.5.10 Released!

The Yaf_Route_Supervar class

(Yaf >=1.0.0)

Giriş

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.

Sınıf Sözdizimi

class Yaf_Route_Supervar implements Yaf_Route_Interface {
/* Özellikler */
protected $_var_name;
/* Yöntemler */
publicfunction __construct(string $supervar_name)
public function assemble(array $info, array $query = ?): string
public function route(Yaf_Request_Abstract $request): bool
}

Özellikler

_var_name

İçindekiler

add a note

User Contributed Notes

There are no user contributed notes for this page.
To Top