(PECL yaf >=1.0.0)
Yaf_Route_Simple::__construct — Yaf_Route_Simple constructor
Yaf_Route_Simple will get route info from query string. and the parameters of this constructor will used as keys while searching for the route info in $_GET.
This function is currently not documented; only its argument list is available.
The key name of the module info.
the key name of the controller info.
the key name of the action info.
Always return TRUE.
Example #1 Yaf_Route_Simple::route()example
<?php
$route = new Yaf_Route_Simple("m", "controller", "act");
Yaf_Router::getInstance()->addRoute("simple", $route);
?>
Example #2 Yaf_Route_Simple::route()example
Request: http://yourdomain.com/path/?controller=a&act=b => module = default(index), controller = a, action = b Request: http://yourdomain.com/path => module = default(index), controller = default(index), action = default(index)