Can we call one controller function in other controll fucntion |
[eluser]Dam1an[/eluser]
Why is it in the second example you don't mind having 'info' but don't want it in the first one? If you just add those few extra characters, it'll be so easy
[eluser]MianUsman[/eluser]
means sir can u explain what u r trying to say me, Thanks for giving me time.
[eluser]Dam1an[/eluser]
The second example URl you have Code: www.abc.com/en/auction_info/nayyer/123 have the name of the function you want in it So why can't you have Code: www.abc.com/fr/auction/info/nayyer/123 You're not even adding any extra characters to the URL, just changing the underscore to a forward slash
[eluser]MianUsman[/eluser]
i know but client dont want / this this is my problem
[eluser]Dam1an[/eluser]
But they don't mind the other forward slashes? Could you not have Code: something/(:any)_(:any)/something Actually, you would need regex, as :any would also match the underscore (I think)
[eluser]MianUsman[/eluser]
$route['(en|sp|por|pol|chn)/auction/(:any)/(:any)'] = 'auction/info/$2/$3'; can u write url route for this sir www.abc.com/en/auction_info/nayyer/123 Thanks.
[eluser]MianUsman[/eluser]
thanks a lot sir i fixed my problem i just rout one line code that will be apply on all controller and its function $route['(en|sp|por|pol|chn)/(:any)_(:any)/(:any)/(:any)'] = '$2/$3/$4/$5'; if u think there is some issue plz let me know , i think its work fine Thanks again |
Welcome Guest, Not a member yet? Register Sign In |