Yaf_Route_Static::route
(Yaf >=1.0.0)
Yaf_Route_Static::route — リクエストをルーティングする
説明
public Yaf_Route_Static::route
( Yaf_Request_Abstract $request
) : bool
警告 この関数は、 現在のところ詳細な情報はありません。引数のリストのみが 記述されています。
パラメータ
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
参考
- Yaf_Route_Supervar::route() - The route purpose
- Yaf_Route_Simple::route() - リクエストをルーティングする
- Yaf_Route_Regex::route() - The route purpose
- Yaf_Route_Rewrite::route() - The route purpose
- Yaf_Route_Map::route() - route の目的