The Yaf_Route_Static class

(Yaf >=1.0.0)

Introduction

Defaultly, Yaf_Router only have a Yaf_Route_Static as its default route.

And Yaf_Route_Static is designed to handle the 80% requirement.

please *NOTE* that it is unnecessary to instance a Yaf_Route_Static, also unecesary to add it into Yaf_Router's routes stack, since there is always be one in Yaf_Router's routes stack, and always be called at the last time.

Class synopsis

classYaf_Route_StaticimplementsYaf_Router {
publicassemble(array$info, array$query = ?): string
publicmatch(string$uri): void
}

Table of Contents

To Top