PHP » GoLang |
login |
register |
about
|
GoLang Yaf_Route_Rewrite::__construct
request it (334)
GoLang replacement for PHP's Yaf_Route_Rewrite::__construct
[edit | history]
PHP Yaf_Route_Rewrite::__constructPHP original manual for Yaf_Route_Rewrite::__construct [ show | php.net ]Yaf_Route_Rewrite::__construct(Yaf >=1.0.0) Yaf_Route_Rewrite::__construct — Yaf_Route_Rewrite constructor Description
public Yaf_Route_Rewrite::__construct
( string
$match
, array $route
[, array $verify
] )
Parameters
Return Values
ExamplesExample #1 Yaf_Route_Rewrite()example
<?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_Rewrite()example
<?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, ) Example #3 Yaf_Route_Rewrite(as of 2.3.0)()example
<?php The above example will output something similar to: /* for http://yourdomain.com/user-list/list/22 * route will result in following values: */ array( "controller" => "user", "action" => "list", "module" => "index", //(default) ) /** * and request parameters: */ array( "id" => 22, ) See Also
|
more
Recently updated
more
Most requested
more
Last requests
|