monsieurbiz / mbiz_router
Your routes on Magento 2.
Installs: 0
Dependents: 0
Suggesters: 0
Security: 0
Stars: 1
Watchers: 4
Forks: 0
Open Issues: 0
Type:magento2-module
Requires
- php: ~5.6.0|~7.0.0
- magento/framework: ~100.0.4
This package is auto-updated.
Last update: 2024-12-29 05:56:45 UTC
README
Introduction
Your routes on Magento 2.
Installation
composer require monsieurbiz/mbiz_router=dev-master
Usage
Static URL
- URL:
http://example.org/foo.html
- Match:
http://example.org/foo/index/index
config.xml
:
<default> <mbiz_router> <my_router> <type>static</type> <route>foo.html</route> <module>foo</module> <controller>index</controller> <action>index</action> </my_router> </mbiz_router> </default>
Regex URL
- URL:
http://example.org/foo.hmtl
- Match:
http://example.org/foo/index/index
config.xml
:
<default> <mbiz_router> <my_router> <type>regex</type> <route>helloworld/(foo|bar|baz)\.html</route> <reverse>helloworld/%1$s.html</reverse> <map> <key>1</key> </map> <module>hello</module> <controller>index</controller> <action>index</action> </my_router> </mbiz_router> </default>
Contribute
Please enjoy creating Pull Requests.
License
This source code is provided under MIT License.
Authors
Originally created by @jacquesbh, we made it for Magento 2.
Also, please find all contributors in the dedicated page.
On the road again