• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Dynamic Routes

Hello all, I'm new to CI.
In my future project, we will have a menu structure like this:

So, many menus, and each of them will have many submenus (many submenus will have a CRUD, or similar).
My problem is making the routes to all this pages, I would like to organize the Controllers inside folders (with the menu's name) and each submenu would be a Controller, like this:

But at the same time, I don't want to create one entry in the Routes.php file for each submenu, is there a way to create a route that simply takes the path URI and search in the folders for that exact values?

Messages In This Thread
Dynamic Routes - by GuilhermeBiz - 03-14-2019, 11:39 AM
RE: Dynamic Routes - by lorenzoallopez91 - 03-14-2019, 11:56 PM
RE: Dynamic Routes - by GuilhermeBiz - 03-15-2019, 07:08 AM

Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  

  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2020 MyBB Group.