The Yaf_Route_Static class

(Yaf >=1.0.0)

Introduction

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 implements Yaf_Router {
/* Methods */
public function assemble(array $info, array $query = ?): string
public function match(string $uri): bool
public function route(Yaf_Request_Abstract $request): bool
}

Table of Contents

add a note

User Contributed Notes

There are no user contributed notes for this page.