Yaf_Route_Static::route

(Yaf >=1.0.0)
Route a request
public bool Yaf_Route_Static::route ( Yaf_Request_Abstract $request )
Parameters:
request
Returns:

always be TRUE

This function is currently not documented; only its argument list is available.

Examples:
Yaf_Route_Static::route() example
// 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
See also:

Yaf_Route_Supervar::route() -

Yaf_Route_Simple::route() -

Yaf_Route_Regex::route() -

Yaf_Route_Rewrite::route() -

Yaf_Route_Map::route() -

doc_php
2016-02-24 16:07:54
Comments
Leave a Comment

Please login to continue.