array ( 0 => 'index.php', 1 => 'PHP Manual', ), 'head' => array ( 0 => 'UTF-8', 1 => 'ja', ), 'this' => array ( 0 => 'yaf-route-static.route.php', 1 => 'Yaf_Route_Static::route', ), 'up' => array ( 0 => 'class.yaf-route-static.php', 1 => 'Yaf_Route_Static', ), 'prev' => array ( 0 => 'yaf-route-static.match.php', 1 => 'Yaf_Route_Static::match', ), 'next' => array ( 0 => 'class.yaf-route-supervar.php', 1 => 'Yaf_Route_Supervar', ), 'alternatives' => array ( ), 'source' => array ( 'lang' => 'ja', 'path' => 'reference/yaf/yaf_route_static/route.xml', ), ); $setup["toc"] = $TOC; $setup["toc_deprecated"] = $TOC_DEPRECATED; $setup["parents"] = $PARENTS; manual_setup($setup); ?>
(Yaf >=1.0.0)
Yaf_Route_Static::route — リクエストをルーティングする
この関数は、 現在のところ詳細な情報はありません。引数のリストのみが 記述されています。
request
常に true
を返します。
例1 Yaf_Route_Static::route() の例
// assuming there is only one module defined:Index Request: http://yourdomain.com/a/b => module = index, controller=a, action=b //assuming ap.action_prefer = On Request: http://yourdomain.com/b => module = default(index), controller = default(index), action = b //assuming ap.action_prefer = Off Request: http://yourdomain.com/b => module = default(index), controller = b, action = default(index) Request: http://yourdomain.com/a/b/foo/bar/test/a/id/4 => module = default(index), controller = a, action = b, request parameters: foo = bar, test = a, id = 4