Deprecated: Optional parameter $keys declared before required parameter $cms_id is implicitly treated as a required parameter in /home/www/dev/work/class/blog/CmsKey.php on line 75

Deprecated: Creation of dynamic property lvesu\lvesu\controller\blog\php::$title is deprecated in /home/www/dev/work/website/lvesu/class/controller/blog/php.php on line 28

Deprecated: Creation of dynamic property lvesu\lvesu\controller\blog\php::$outlink is deprecated in /home/www/dev/work/website/lvesu/template/blog/cms/php.manual.tpl on line 2

Deprecated: Creation of dynamic property lvesu\lvesu\controller\blog\php::$status is deprecated in /home/www/dev/work/website/lvesu/template/blog/index.head.php on line 2
PHP - Manual: Yaf_Route_Static - 互联网笔记

略微加速

PHP官方手册 - 互联网笔记

PHP - Manual: Yaf_Route_Static

2025-05-31

Yaf_Route_Static 类

(Yaf >=1.0.0)

简介

默认的情况下,Yaf_Router 只将 Yaf_Route_Static 作为默认路由。

Yaf_Route_Static 旨在处理 80% 的需求。

请注意:没有必要实例化 Yaf_Route_Static,也没必要将其加入到 Yaf_Router 的路由栈,因为在 Yaf_Router 的路由堆栈中始终存在它的实例,并且总是在最后调用。

类摘要

class Yaf_Route_Static implements Yaf_Router {
/* 方法 */
public assemble(array $info, array $query = ?): string
public match(string $uri): void
public route(Yaf_Request_Abstract $request): bool
}

目录

添加备注

用户贡献的备注

此页面尚无用户贡献的备注。

官方地址:https://www.php.net/manual/en/class.yaf-route-static.php

冷却塔厂家 广告
中文GPT4.0无需注册 广告
北京半月雨文化科技有限公司.版权所有 京ICP备12026184号-3