Simple
final class Simple implements Route_Interface (View source)
\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
Properties
protected string | $controller | ||
protected string | $module | ||
protected string | $action |
Methods
\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.
\Yaf\Route\Simple::assemble() - Assemble a url
Details
__construct(string $module_name, string $controller_name, string $action_name)
\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.
bool
route(Request_Abstract $request)
see \Yaf\Route\Simple::__construct()
bool
assemble(array $info, array $query = null)
\Yaf\Route\Simple::assemble() - Assemble a url