3. Magento Routing
Zend Model: Module/Controller/Action
Magento knows this scheme very well and
how to go to the right action on the base of
request.
Route like /contacts/index/index will work as
good as /contacts
At least result will be the same :)
11. Magento Routing
Magento Core has 3 Routers which called
one by one
Admin -> Standard -> Default
Admin - catches all admin routes
Standard - catches frontend routes
Default - catches any request which was not catched
by previous two. And send customer to the default route
- 404 page or home page.
13. Magento Routing
Default router does not do any dispatch job.
It only tells $request object that it should
follow to the defined /module/controller/action
15. Magento Routing
Custom router
- configure xml
- put the Router into Controller/Front
directory
(it is a convention not a rule)
- use default Router as an example
16. Magento Routing
Custom router
- to do less moves extend from Standard
- programmatic way to add router on the fly
located in Mage_Cms module
17. Thanks
- Magic "While"
for Magic
- Song: "Taiyou Iwaku Moeyo Chaos"
for support
- Stepan Tanasiychuk @stfalcon
for inspiration