Routes Issue

You mean you don't want to include the (en|sp...) at the start of each route?
The only way I can think of, would be to extend the router class, determine the language code, and then remove the language code so seg(1) is now seg(0) and so on

what i want this is my url look like

the route will be something like that

$route[’(en|sp|por|pol|chn)/auction/signup’] = ‘auction/signup’;

in this approach problem is that we have to write too many routes for each and every function which i mention above. which is time consuming and not a good approach if u have other option plz let me know


Like I said above, the only other way I can think of would be to extend the router class

Actually, you could also maybe use a _remap function and put that in MY_Controller

can u send me some code how its work sir in MY_Controller

I don't have any such code to show you, and I'm not going to do your work for you
I just know its another possibility

Try it yourself, once you've made an effort and have some code, then people will be more then happy to help

Thanks a lot for yours guidness Smile



Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  

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