The Yaf_Route_Rewrite class

(Yaf >=1.0.0)

Introduction

Yaf_Route_Rewrite is a built-in route that maps a fixed path pattern to a module, controller and action. The pattern may contain named placeholders (:name, whose value is set as a request parameter) and a trailing * wildcard that captures the remaining segments as key/value pairs.

For usage, please see the example section of Yaf_Route_Rewrite::__construct().

Class synopsis

class Yaf_Route_Rewrite extends Yaf_Route_Interface implements Yaf_Route_Interface {
/* Properties */
protected $_route;
protected $_default;
protected $_verify;
/* Methods */
public function __construct(string $match, array $route, array $verify = ?)
public function assemble(array $info, array $query = ?): string
public function route(Yaf_Request_Abstract $request): bool
/* Inherited methods */
abstract public function Yaf_Route_Interface::assemble(array $info, array $query = ?): string
abstract public function Yaf_Route_Interface::route(Yaf_Request_Abstract $request): bool
}

Properties

_route

_default

_verify

Table of Contents

add a note

User Contributed Notes

There are no user contributed notes for this page.