Skip to content
Example router for demonstration how to create custom router in Magento 2.
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
Controller
etc
README.md
composer.json

README.md

magento2-custom-router

Example router in Magento 2.

Install:

First add repository to composer configuration: ```bash composer config repositories.inchoocustomrouter vcs git@github.com:zoransalamun/magento2-custom-router.git ``` Require new package with composer: ```bash composer require inchoo/custom-router:dev-master ``` Enable Inchoo CustomRouter module ```bash php bin/magento module:enable Inchoo_CustomRouter ```

Flush everything:

php bin/magento setup:upgrade
You can’t perform that action at this time.