\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:----SgmsmbQNzs0G3cYANPedIXvajKyB9WeMOUCFYfviFCLY4qGzTPPEmOCsV2JPX3WEio91wCZekyDGy8TBm4dulx+O7PduEHW/dhi4bzxZk5obNGktufcPVNeCRVaFPmm8rq2maAOpxufTd8eePjRdgjoxf9OLROSbd27CC0a5+4eNkyZPgKqe3ZM2LNUYGUezCiT8dRHHbqTtA/GnVZjtaoA8eLJtTt/DJxUeB2i/SY6SD3tBUBsauMLqbcZ+83l1HaUL9o5TFHLWX4iw3qnHXIKw8tkl+qZSYXGmKK9LsMUSMU7zT6exG2aQWIdj49SQOHxcFSBkR8B4GV0sFlQBnw+ZfeXaJ06/n1eglIKVMspZohF+aHmDbMj4pTG0I8TO0wB318tvHzJzB0c/zgsWWGHW4VryaEmE+9owMJXTf8rN/yieEyP49VojDPNYYNX9McEysDLbIh5Xqh/YdcYk7jPPExwXEWVFrvZJALuU9TyCepHjNSMWo/RBVSz0A5YUmHrl5U6d5nEBSHiX2E8qW//IhyGLrfCMRoBP3l7XHPPPJgJooiKMHkNcRPewbWPftNiKmAHlqfrx0AcFyOdIcw8ZGpHWR1I87BQjkSZ3iQi13DNLztYS/bfZQ7Tff8GaJOxi7fUK4YHLgzrZXyXdNg2gM7CUVr2sWKiidx+ZFIg=----ATTACHMENT:----ODcyMjkzNDY4NTk3NTUyMyAxNDgwODYyNzkwOTc1OTMyIDMxMDU1MjQzMjYzNTYwMjY=