Yet Another Framework Yaf_Route_Static::route
(Yaf >=1.0.0)
Yaf_Route_Static::route — Route a request
설명
public Yaf_Route_Static::route(Yaf_Request_Abstract $request
): bool
경고 이 함수는 현재 문서화되어 있지 않습니다. 인수 목록만 사용할 수 있습니다.
매개변수
request
반환 값
always be true
Examples
예제 #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() - Route a request
- Yaf_Route_Regex::route() - The route purpose
- Yaf_Route_Rewrite::route() - The route purpose
- Yaf_Route_Map::route() - The route purpose