![]() |
Inserting custom route files to routes.php - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Using CodeIgniter (https://forum.codeigniter.com/forumdisplay.php?fid=5) +--- Forum: General Help (https://forum.codeigniter.com/forumdisplay.php?fid=24) +--- Thread: Inserting custom route files to routes.php (/showthread.php?tid=65186) |
Inserting custom route files to routes.php - e2web - 05-12-2016 Dear All In my routes.php, I have included more than 10 external files as follows require_once APPPATH . 'cache/routes1.php'; require_once APPPATH . 'cache/routes2.php'; require_once APPPATH . 'cache/routes3.php'; require_once APPPATH . 'cache/routes4.php'; require_once APPPATH . 'cache/routes5.php'; Is there a way to load some of these files on certain controllers. For example, --I would like to load routes1.php only when accessing the controler "XYZ" --I would like to load routes2.php only when accessing the controler "ABC" Is it possible to achieve this? Thank you |