array ( 0 => 'index.php', 1 => 'PHP Manual', ), 'head' => array ( 0 => 'UTF-8', 1 => 'zh', ), 'this' => array ( 0 => 'class.yaf-route-static.php', 1 => 'Yaf_Route_Static', ), 'up' => array ( 0 => 'book.yaf.php', 1 => 'Yaf', ), 'prev' => array ( 0 => 'yaf-route-simple.route.php', 1 => 'Yaf_Route_Simple::route', ), 'next' => array ( 0 => 'yaf-route-static.assemble.php', 1 => 'Yaf_Route_Static::assemble', ), 'alternatives' => array ( ), 'source' => array ( 'lang' => 'zh', 'path' => 'reference/yaf/yaf-route-static.xml', ), 'extra_header_links' => array ( 'rel' => 'alternate', 'href' => '/manual/en/feeds/class.yaf-route-static.atom', 'type' => 'application/atom+xml', ), ); $setup["toc"] = $TOC; $setup["toc_deprecated"] = $TOC_DEPRECATED; $setup["parents"] = $PARENTS; manual_setup($setup); ?>
(Yaf >=1.0.0)
默认的情况下,Yaf_Router 只将 Yaf_Route_Static 作为默认路由。
Yaf_Route_Static 旨在处理 80% 的需求。
请注意:没有必要实例化 Yaf_Route_Static,也没必要将其加入到 Yaf_Router 的路由栈,因为在 Yaf_Router 的路由堆栈中始终存在它的实例,并且总是在最后调用。