Welcome Guest, Not a member yet? Register   Sign In
Routes Issue
#11

[eluser]Dam1an[/eluser]
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
#12

[eluser]MianUsman[/eluser]
Sir,
what i want this is my url look like

www.abc.com/sp/auction/signup

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

Regrads.
#13

[eluser]Dam1an[/eluser]
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
#14

[eluser]MianUsman[/eluser]
can u send me some code how its work sir in MY_Controller
#15

[eluser]Dam1an[/eluser]
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
#16

[eluser]MianUsman[/eluser]
Thanks a lot for yours guidness Smile

Cheers

Regards.




Theme © iAndrew 2016 - Forum software by © MyBB