Zend\MVC - Routing
9 important questions on Zend\MVC - Routing
Does a zend framework 2 application contain a router?
What two components do the work of a router?
What are the three methods in the RouteInterface?
2. match(Request $request)
3. assemble(array $params = array(), array $options = array());
- Higher grades + faster learning
- Never study anything twice
- 100% sure, 100% understanding
What does a Route return when a match is found?
What are the main methods of a RouteMatch?
2. getMatchedRouteName()
3. setParam($name, $value)
4. getParams()
5. getParam($name, $default = null)
What interface support having multiple routes to test against?
What are the main methods of Zend\Mvc\Router\RouteStackInterface?
2. addRoutes(array $routes)
3. removeRoute($name)
4. setRoutes(array $routes)
Are routes queried in FIFO or LIFO order?
What algorithm is used by Zend\Mvc\Router\Http\TreeRouteStack to match routes?
The question on the page originate from the summary of the following study material:
- A unique study and practice tool
- Never study anything twice again
- Get the grades you hope for
- 100% sure, 100% understanding
![Trustpilot Logo](/images/design_2020/lp/clp-trustpilot-en.png)