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 $routeWhen 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 $routeWhen 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:----RAP83LvN5NWNsfPHeMy3pnW/3SWp7heCH/yNFYYq8v5L7Yq80abqVkH6scfn2Vqn5e8JnpTQyy56JPcKLb3pXwz2NHhGj8Tps8VxehGtG+V6R/Tqiv308nNIg9Nw/q1lUt+yLzEzncCDgwqrGy9wv1wPpc44oCZYOWiBLgK/A75emxfLg+MOsrQb/UXFEzrUwvgcHCCtr6GZs6hs1tW3XP2xkd9Vs0qae0aCX7Grh1yLCs1AfYkBuYSiWWv6OKCptYTNfYwY3Qf0KJFwzZcEGCdjDFgvdup37bnir43MiQGvUm4jjT8h1NqRFIez7d2pW+Pe06CEEvWtPRXIVtng8xIWlMjide7an9+NPCkhQsrIJyHKS3eGawbpIEwHcxsJxh8z/cLVq0PfNJk7lifRts53k4lKd4z41Z/3HJSUTfK+88qX9KsB/BS89fbfj0EHPODIZMDGlkx/RUv2/KjdKulfQAnAKZHhzKhK3a1wPo6oxY5Yqi+3B/IW+e2SkSpf9BVPGELCwjP4cuREZr4JGgo4RW4b58wtr3bQBWogBo23arE6bsr1P6SiT4ZGcwNNqPBwRxO+R9GJXKdGT7TmNCoCmQuX4GowQnj+7rHiAL9rbRp1CgaATdK3FmYQOb9CF33I7FWtlUPu3w2cyrIHYB1H7tInjo7iypFZ37WudLY=----ATTACHMENT:----Nzg1MjMzMDI5MDI2MDU2MiA0ODk5NTg3Nzk2ODcyNDQ4IDk4MDc5NDQ5OTQ3Mjc5MDg=