(Yaf >=1.0.0)
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.
public assemble(array $info, array $query = ?): string
public route(Yaf_Request_Abstract $request): bool}
© 1997–2025 The PHP Documentation Group
Licensed under the Creative Commons Attribution License v3.0 or later.
https://www.php.net/manual/en/class.yaf-route-simple.php