I want to load routes from a database table, instead of routes.php in codeigniter using HMVC framework? Any idea to achieve it without a hack in core Router.php file?
Asked
Active
Viewed 1,711 times
1
-
2No, you have to hack Router.php. – Mischa Jun 30 '13 at 12:24
-
in `routes.php` loop through your routes defined in db – M Khalid Junaid Jun 30 '13 at 13:28
-
Take a look at [this](http://stackoverflow.com/questions/17042099/database-driven-routing-in-codeigniter-2-x). There's also [a thread](http://ellislab.com/forums/viewthread/121486) in CI forum. – Hashem Qolami Jun 30 '13 at 17:00
-
Out of interest, why do you need to load routes from the database? – Jeemusu Jul 01 '13 at 03:34