Yaf_Route_Rewrite::__constructYaf_Route_Rewrite constructor Description
public Yaf_Route_Rewrite::__construct
( string
$match
, array $route
[, array $verify
] )
Parameters
Return Values
ExamplesExample #1 Yaf_Route_Rewriteexample
<?php The above example will output something similar to: /* for http://yourdomain.com/product/foo/22/foo/bar * route will result in following values: */ array( "controller" => "product", "module" => "index", //(default) "action" => "index", //(default) ) /** * and request parameters: */ array( "name" => "foo", "id" => 22, "foo" => bar ) Example #2 Yaf_Route_Rewriteexample
<?php The above example will output something similar to: /* for http://yourdomain.com/user-list/22 * route will result in following values: */ array( "controller" => "user", "action" => "list", "module" => "index", //(default) ) /** * and request parameters: */ array( "id" => 22, ) See Also
|