Yaf_Route_Map::__constructConstruct a map route Description
public Yaf_Route_Map::__construct(bool
$controller_prefer = false, string $delimiter = '')Construct a map route. A map route maps the whole URI to a controller name or an action name. Parameters
Return ValuesNo value is returned. ExamplesExample #1 Yaf_Route_Map example The above example will output something similar to: /* for http://yourdomain.com/product/foo/bar * the request will carry the following values: */ array( "action" => "product_foo_bar", ) Example #2 Yaf_Route_Map example The above example will output something similar to:
/* for http://yourdomain.com/user/list/_/foo/22
* the request will carry the following values:
*/
array(
"controller" => "User_List",
)
/**
* and request parameters:
*/
array(
"foo" => "22",
)
Example #3 Yaf_Route_Map example See Also
|