Magento 2
Anatomy of a URL
Free Preview
# Each incoming request/route consists of three parts:
# - A "frontName" which matches to a module's router
# - A "controllerName" which maps to a module's "Controller"
# - An "actionName" which maps to a controller "Action"

# Each of these parts corresponds to the anatomy of a URL.
/{frontName}/{controllerName}/{actionName}

# Given the URL: /foo/bar/baz
frontName = foo
controllerName = bar
actionName = baz

# URL params get processed like usual:
/foo/bar/index?name=john

# This request is also exactly equivalent to this "friendly" URL:
/foo/bar/index/name/john

# And you can append as many additional parameters as you'd like...
/{frontName}/{controllerName}/{actionName}/{param1Name}/{param1Value}/{param2Name}/{param2Value}/{...}
Want to learn more?

Visit M.academy to learn much more about Magento, Laravel, PHP, Javascript, & Docker.

M.academy logo