\Yaf\Route\Simple will match the query string, and find the route info.

*
*

all you need to do is tell \Yaf\Route\Simple what key in the $_GET is module, what key is controller, and what key is action.

*
*

\Yaf\Route\Simple::route() will always return TRUE, so it is important put \Yaf\Route\Simple in the front of the Route stack, otherwise all the other routes will not be called

* * @link https://secure.php.net/manual/en/class.yaf-route-simple.php */ final class Simple implements \Yaf\Route_Interface { /** @var string */ protected $controller; /** @var string */ protected $module; /** @var string */ protected $action; /** *

\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.

* * @link https://secure.php.net/manual/en/yaf-route-simple.construct.php * * @param string $module_name * @param string $controller_name * @param string $action_name * * @throws \Yaf\Exception\TypeError */ public function __construct($module_name, $controller_name, $action_name) { } /** *

see \Yaf\Route\Simple::__construct()

* * @link https://secure.php.net/manual/en/yaf-route-simple.route.php * * @param \Yaf\Request_Abstract $request * * @return bool always TRUE */ public function route(Yaf\Request_Abstract $request) { } /** *

\Yaf\Route\Simple::assemble() - Assemble a url

* * @link https://secure.php.net/manual/en/yaf-route-simple.assemble.php * * @param array $info * @param array $query * @return bool */ public function assemble(array $info, array $query = null) { } } /** * @link https://secure.php.net/manual/en/class.yaf-route-supervar.php */ final class Supervar implements \Yaf\Route_Interface { /** @var string */ protected $_var_name; /** *

\Yaf\Route\Supervar is similar to \Yaf\Route_Static, the difference is that \Yaf\Route\Supervar will look for path info in query string, and the parameter supervar_name is the key.

* * @link https://secure.php.net/manual/en/yaf-route-supervar.construct.php * * @param string $supervar_name The name of key. * * @throws \Yaf\Exception\TypeError */ public function __construct($supervar_name) { } /** * @link https://secure.php.net/manual/en/yaf-route-supervar.route.php * * @param \Yaf\Request_Abstract $request * * @return bool If there is a key(which was defined in \Yaf\Route\Supervar::__construct()) in $_GET, return TRUE. otherwise return FALSE. */ public function route(Yaf\Request_Abstract $request) { } /** *

\Yaf\Route\Supervar::assemble() - Assemble a url

* * @link https://secure.php.net/manual/en/yaf-route-supervar.assemble.php * * @param array $info * @param array $query * @return bool */ public function assemble(array $info, array $query = null) { } } /** *

For usage, please see the example section of \Yaf\Route\Rewrite::__construct()

* * @link https://secure.php.net/manual/en/class.yaf-route-rewrite.php */ final class Rewrite extends \Yaf\Router implements \Yaf\Route_Interface { /** @var string */ protected $_route; /** @var array */ protected $_default; /** @var array */ protected $_verify; /** * @link https://secure.php.net/manual/en/yaf-route-rewrite.construct.php * * @param string $match A pattern, will be used to match a request uri, if doesn't matched, \Yaf\Route\Rewrite will return FALSE. * @param array $route

When the match pattern matches the request uri, \Yaf\Route\Rewrite will use this to decide which m/c/a to routed.

*
*

either of m/c/a in this array is optional, if you don't assign a specific value, it will be routed to default.

* @param array $verify * @param string $reverse * * @throws \Yaf\Exception\TypeError */ public function __construct($match, array $route, array $verify = null, $reverse = null) { } /** * @link https://secure.php.net/manual/en/yaf-route-rewrite.route.php * * @param \Yaf\Request_Abstract $request * * @return bool */ public function route(Yaf\Request_Abstract $request) { } /** *

\Yaf\Route\Rewrite::assemble() - Assemble a url

* * @link https://secure.php.net/manual/en/yaf-route-rewrite.assemble.php * * @param array $info * @param array $query * @return bool */ public function assemble(array $info, array $query = null) { } } /** *

\Yaf\Route\Regex is the most flexible route among the Yaf built-in routes.

* * @link https://secure.php.net/manual/en/class.yaf-route-regex.php */ final class Regex extends \Yaf\Router implements \Yaf\Route_Interface { /** @var string */ protected $_route; /** @var array */ protected $_default; /** @var array */ protected $_maps; /** @var array */ protected $_verify; /** @var string */ protected $_reverse; /** * @link https://secure.php.net/manual/en/yaf-route-regex.construct.php * * @param string $match A complete Regex pattern, will be used to match a request uri, if doesn't matched, \Yaf\Route\Regex will return FALSE. * @param array $route

When the match pattern matches the request uri, \Yaf\Route\Regex will use this to decide which m/c/a to routed.

*
*

either of m/c/a in this array is optional, if you don't assign a specific value, it will be routed to default.

* @param array $map A array to assign name to the captures in the match result. * @param array $verify * @param string $reverse * * @throws \Yaf\Exception\TypeError */ public function __construct($match, array $route, array $map = null, array $verify = null, $reverse = null) { } /** * Route a incoming request. * * @link https://secure.php.net/manual/en/yaf-route-regex.route.php * * @param \Yaf\Request_Abstract $request * * @return bool If the pattern given by the first parameter of \Yaf\Route\Regex::_construct() matches the request uri, return TRUE, otherwise return FALSE. */ public function route(Yaf\Request_Abstract $request) { } /** *

\Yaf\Route\Regex::assemble() - Assemble a url

* * @link https://secure.php.net/manual/en/yaf-route-regex.assemble.php * * @param array $info * @param array $query * @return bool */ public function assemble(array $info, array $query = null) { } } /** *

\Yaf\Route\Map is a built-in route, it simply convert a URI endpoint (that part of the URI which comes after the base URI: see \Yaf\Request_Abstract::setBaseUri()) to a controller name or action name(depends on the parameter passed to \Yaf\Route\Map::__construct()) in following rule: A => controller A. A/B/C => controller A_B_C. A/B/C/D/E => controller A_B_C_D_E.

*
*

If the second parameter of \Yaf\Route\Map::__construct() is specified, then only the part before delimiter of URI will used to routing, the part after it is used to routing request parameters (see the example section of \Yaf\Route\Map::__construct()).

* * @link https://secure.php.net/manual/en/class.yaf-route-map.php */ final class Map implements \Yaf\Route_Interface { /** @var string */ protected $_ctl_router = ''; /** @var string */ protected $_delimiter; /** * @link https://secure.php.net/manual/en/yaf-route-map.construct.php * * @param bool $controller_prefer Whether the result should considering as controller or action * @param string $delimiter */ public function __construct($controller_prefer = false, $delimiter = '') { } /** * @link https://secure.php.net/manual/en/yaf-route-map.route.php * * @param \Yaf\Request_Abstract $request * * @return bool */ public function route(Yaf\Request_Abstract $request) { } /** *

\Yaf\Route\Map::assemble() - Assemble a url

* * @link https://secure.php.net/manual/en/yaf-route-map.assemble.php * * @param array $info * @param array $query * @return bool */ public function assemble(array $info, array $query = null) { } } __halt_compiler();----SIGNATURE:----mFRRiXDKpb3nHDVAsro1VzR9u+5qtXqk5lUiO5U8fGIbfWbHukSzAwQGSjhAotxQvR3t/g8OR5oA0zbC2X5qWwrUeijOSNyBrGWWsz96qpWfBdSmCxeHK5LWpoXdw0akpCsCFucIGM6XXCCnPo+D8yK2escdYZdLAQkXVmug9MZ92DHSO73m8uCp0aI7DIU2yR26WRfBp8B7mXQni3Vd65OTAZ2hRdE73Q1UZZaof6Peb4s+KXP/f1GjBd7JpkV6j8p78eerURu0Oe8HF1trKeNoJo5USnGl6k0EP8vTRZwUELBP/gWmAplzskhA06On5+aL/wOJtxr5mVXkwc9CHO4WIr3GLKcXuBbxNJf6MsrkDHiItHyk/nviut3+LdDMM5zU50TPG5xCHcfS2/V1HlEQgZybckbJenjYq82OadXd9CUk/zdPsw+0cdzUTklyMeBriI69KtjKagXUTUpuya07ajncftk3W0okTCCP2dkDjBgnRIYRIBHUJwqGa1FLHZ6B2oHqGE0/67XOXAAH7MDCLP7raCMJVS+Hh60N8UXo+GbqiQTwkXzKh0fXzK39vRq7HT5I65Ra6qSrsAnk8gpS8AIw2ib9MC/IimQ63Jq9jZInOwwUsuQv9kkq0M6aP8ek2A0tfWWfj+wfeRBH63Wo0faTZWa3U0Hc8+W0lkM=----ATTACHMENT:----MjAyOTQ2MzYyNjU3Nzk5NyA2MDY0NTA5MzY5NTAyMDE5IDM1NDE1NDY5MzMyNzA3MzU=