Magento RoutingFollow the Request
Magento RoutingZend Model: Module/Controller/Action
Magento RoutingZend Model: Module/Controller/ActionMagento knows this scheme very well andhow to go to the right action on...
Magento RoutingMage_Core_Controller_Varien_Front
Magento RoutingDispatch Routers are defined in Core config.xmlThere 2 of them by default
Magento RoutingAs area is Frontend lets see what Standardrouter suggests.
Magento RoutingAll routes are defined in xml files, thoughprogrammatically they can be defined toowith the help of observer.
Magento RoutingMage_Core_Controller_Varien_Front
Magento RoutingNow we can match route with request and dodispatch
Magento RoutingMage_Core_Controller_Varien_Action
Magento RoutingMagento Core has 3 Routers which calledone by oneAdmin -> Standard -> Default Admin    - catches all admin ...
Magento RoutingMage_Core_Controller_Varien_Router_Default
Magento RoutingDefault router does not do any dispatch job.It only tells $request object that it shouldfollow to the defin...
Magento RoutingStandard Router will do dispatch as now heknows where to go.
Magento RoutingCustom router - configure xml - put the Router into Controller/Frontdirectory(it is a convention not a rule...
Magento RoutingCustom router - to do less moves extend from Standard - programmatic way to add router on the flylocated in...
Thanks- Magic "While"  for Magic- Song: "Taiyou Iwaku Moeyo Chaos"  for support- Stepan Tanasiychuk @stfalcon  for inspira...
Upcoming SlideShare
Loading in …5
×

Magento routing

4,685 views

Published on

Describes Magento 1.X routing process and shows how to create custom router

0 Comments
3 Likes
Statistics
Notes
  • Be the first to comment

No Downloads
Views
Total views
4,685
On SlideShare
0
From Embeds
0
Number of Embeds
12
Actions
Shares
0
Downloads
60
Comments
0
Likes
3
Embeds 0
No embeds

No notes for slide

Magento routing

  1. 1. Magento RoutingFollow the Request
  2. 2. Magento RoutingZend Model: Module/Controller/Action
  3. 3. Magento RoutingZend Model: Module/Controller/ActionMagento knows this scheme very well andhow to go to the right action on the base ofrequest.Route like /contacts/index/index will work asgood as /contactsAt least result will be the same :)
  4. 4. Magento RoutingMage_Core_Controller_Varien_Front
  5. 5. Magento RoutingDispatch Routers are defined in Core config.xmlThere 2 of them by default
  6. 6. Magento RoutingAs area is Frontend lets see what Standardrouter suggests.
  7. 7. Magento RoutingAll routes are defined in xml files, thoughprogrammatically they can be defined toowith the help of observer.
  8. 8. Magento RoutingMage_Core_Controller_Varien_Front
  9. 9. Magento RoutingNow we can match route with request and dodispatch
  10. 10. Magento RoutingMage_Core_Controller_Varien_Action
  11. 11. Magento RoutingMagento Core has 3 Routers which calledone by oneAdmin -> Standard -> Default Admin - catches all admin routesStandard - catches frontend routesDefault - catches any request which was not catchedby previous two. And send customer to the default route- 404 page or home page.
  12. 12. Magento RoutingMage_Core_Controller_Varien_Router_Default
  13. 13. Magento RoutingDefault router does not do any dispatch job.It only tells $request object that it shouldfollow to the defined /module/controller/action
  14. 14. Magento RoutingStandard Router will do dispatch as now heknows where to go.
  15. 15. Magento RoutingCustom router - configure xml - put the Router into Controller/Frontdirectory(it is a convention not a rule) - use default Router as an example
  16. 16. Magento RoutingCustom router - to do less moves extend from Standard - programmatic way to add router on the flylocated in Mage_Cms module
  17. 17. Thanks- Magic "While" for Magic- Song: "Taiyou Iwaku Moeyo Chaos" for support- Stepan Tanasiychuk @stfalcon for inspiration

×