Yaf_Route_Supervar::__constructConstruct a supervar route Description
public Yaf_Route_Supervar::__construct(string
$supervar_name)Construct a supervar route. A supervar route expects a query variable to carry a PATH_INFO style URI. Parameters
Return ValuesNo value is returned. ExamplesExample #1 Yaf_Route_Supervar::__construct example The above example will output something similar to: /* http://yourdomain.com/index.php?_url=/product/detail/id/10 * routes to the following values: */ array( "controller" => "product", "module" => "index", //(default) "action" => "detail", //(default) ) /** * and request parameters: */ array( "id" => 10 ) See Also
|