Overview
KB
Technical FAQ
PHP Manual
CSS2 Manual
HTML Manual
JS Guide
JS Reference
PhpDock Manual
Nu-Coder Manual
PhpExpress Manual
PHP Joomla
Development
Learn PHP
 
<Yaf_Route_Simple::routeYaf_Route_Static::assemble>
^YafLast updated: Mon, 26 Oct 2026

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


<Yaf_Route_Simple::routeYaf_Route_Static::assemble>
^YafLast updated: Mon, 26 Oct 2026