\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:----ooCRWd2P20FB0BvdVRts83fwHhiWeXIWaW6nlcwxTRwsGWFQ6kNAZ0AZ+40rntlYwH+YNAJzxqSgE844iOAULVre1YG30ZzjQbOwjMj2FqEBeyhFuouT6SKzxC7SU/qVlHOEZ1VZJYXr4Sq26bhtyhSYjhhXDhPiZLKjaBZsHomgOJCntpPyrWU/FP4YEKb2DpexpNDfTgORbXW81y5mSjs4Sm0bvqgeSeLJD6CWRlw7gHn3AZP6eECz1x8JIW36/+atar6MDwBpWC3DAeHSQuFDUMJm4DDHcG3tFLTwEs/tTFhxMLnxQXTjXEYHSysB44Npg9vwPuSE2VE93UK8pjgSN1CKpt97QTthhSCN1ycUkWW/Ct430XIi/Zl0n8Y84bXvAI02S3aZsHDM51JC19qcUw+nBF7osEq4GXWtD+iNllXDH1pp0ju8YLRnDey/enI6lhZX6j7D6TGwBkiGzp0H8Td0e0K1QdU0qMCfAfhSshGP9/nYPE/1JXTCaWUgnvwhNE4uKbpgevWWAaW9Zjm3Oppwx2UwJ9ZMRPxgdXrox9dDZRXBPp7KvDkrrCdh/b49Lq9CGLIc/45iIhkG9Q8T6JGk4Gqv8D02TdodD8sXWDoUr/pvtjQZ+aVkKiMpIMdEDKyCTzphvHphIZXaACcls51HvqOSZPQxbaDypXs=----ATTACHMENT:----MzI2MzE4MjE5NzIzNzU5MyAyMTY4NDIyNDA4NzgxNjkyIDIzMjkwOTg4OTkxODI1MTg=