A quick question - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20) +--- Forum: Archived General Discussion (https://forum.codeigniter.com/forumdisplay.php?fid=21) +--- Thread: A quick question (/showthread.php?tid=41843) |
A quick question - El Forum - 05-18-2011 [eluser]Yahya Kazemi[/eluser] Hi everybody I have a very small problem that now i can not resolve it. Please help me if you can. I want to define a route in config > routes.php for this mean, every urls like 'http://localhost/sessions/test3_module' redirect to 'http://localhost/sessions/module_loader/load/test3_module' This say every classes that finished with *_module redirect to module_loader/load/*_module I write below code in routes.php, but it didn't work $route['([a-z]+_module)'] = "module_loader/load/$1"; Please help me. Thanks by the way. A quick question - El Forum - 05-18-2011 [eluser]toopay[/eluser] Code: $route['(:any)_module'] = "module_loader/load/$1"; |