Welcome Guest, Not a member yet? Register   Sign In
Load routes from file
#1
Question 

Hi,

Is it possible to load routes from a specific file?

For instance, I have:

Module
    - Config
        - BackedRoutes.php
        - FrontRoutes.php
    (...)

or something like that and I would like to load `FrontendRoutes` only for frontend app and `BackedRoutes` for the admin app. Otherwise, if I have one file `Routes` then after added it to front and backend app I can visit all routes - and it is something what I want to eliminate.

The same problem I will have with `Events` file.

Did anyone have an idea how I can resolve that problem?

Thanks all Smile
Reply


Messages In This Thread
Load routes from file - by Michal_PB1 - 04-02-2020, 07:16 AM
RE: Load routes from file - by InsiteFX - 04-02-2020, 07:53 AM
RE: Load routes from file - by Michal_PB1 - 04-02-2020, 09:06 AM
RE: Load routes from file - by FoLez - 04-02-2020, 02:26 PM
RE: Load routes from file - by Michal_PB1 - 04-03-2020, 03:13 AM



Theme © iAndrew 2016 - Forum software by © MyBB