A quick question

#1
[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.

#2
[eluser]toopay[/eluser]
Code:
$route['(:any)_module'] = "module_loader/load/$1";


Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


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