Routes Issue |
[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
[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.
[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
[eluser]MianUsman[/eluser]
can u send me some code how its work sir in MY_Controller
[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
|
Welcome Guest, Not a member yet? Register Sign In |