Your SlideShare is downloading. ×
0
Magento routing
Magento routing
Magento routing
Magento routing
Magento routing
Magento routing
Magento routing
Magento routing
Magento routing
Magento routing
Magento routing
Magento routing
Magento routing
Magento routing
Magento routing
Magento routing
Magento routing
Upcoming SlideShare
Loading in...5
×

Thanks for flagging this SlideShare!

Oops! An error has occurred.

×
Saving this for later? Get the SlideShare app to save on your phone or tablet. Read anywhere, anytime – even offline.
Text the download link to your phone
Standard text messaging rates apply

Magento routing

3,488

Published on

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

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

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

No Downloads
Views
Total Views
3,488
On Slideshare
0
From Embeds
0
Number of Embeds
0
Actions
Shares
0
Downloads
53
Comments
0
Likes
2
Embeds 0
No embeds

Report content
Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
No notes for slide

Transcript

  • 1. Magento RoutingFollow the Request
  • 2. Magento RoutingZend Model: Module/Controller/Action
  • 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. Magento RoutingMage_Core_Controller_Varien_Front
  • 5. Magento RoutingDispatch Routers are defined in Core config.xmlThere 2 of them by default
  • 6. Magento RoutingAs area is Frontend lets see what Standardrouter suggests.
  • 7. Magento RoutingAll routes are defined in xml files, thoughprogrammatically they can be defined toowith the help of observer.
  • 8. Magento RoutingMage_Core_Controller_Varien_Front
  • 9. Magento RoutingNow we can match route with request and dodispatch
  • 10. Magento RoutingMage_Core_Controller_Varien_Action
  • 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. Magento RoutingMage_Core_Controller_Varien_Router_Default
  • 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. Magento RoutingStandard Router will do dispatch as now heknows where to go.
  • 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. Magento RoutingCustom router - to do less moves extend from Standard - programmatic way to add router on the flylocated in Mage_Cms module
  • 17. Thanks- Magic "While" for Magic- Song: "Taiyou Iwaku Moeyo Chaos" for support- Stepan Tanasiychuk @stfalcon for inspiration

×