« Yaf_Route_Static::match
Yaf_Route_Supervar »

Yaf_Route_Static::route

(Yaf >=1.0.0)

Yaf_Route_Static::route — リクエストをルーティングする

説明

public function 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

参考

関連キーワード:
route   Route   Static   index   action   Request   module   default   リクエスト   ルーティング   controller   request   assuming   Supervar   prefer   match   Abstract   詳細   記述   there   only one   defined   Index   parameters   参考
関連する関数・ページ:
yaf-route-simple.construct   yaf-route-simple.route   class.yaf-route-simple   yaf-route-map.route   class.yaf-route-static   yaf-route-supervar.route