Kategorie

How to create your own routing

1. Create file named RouteProvider in main catalog of your plugin

2. This class have to inherits from IRouteProvider

3. Implement 2 methods from this interface.

It should look like this

First argument of MapRoute should be unique in project.

Second argument is your path, in this example it is "https://www.yourstore.com/login"

The standard routing table is overrided.

 

back to top