Welcome Guest, Not a member yet? Register   Sign In
Can we call one controller function in other controll fucntion
#11

[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
#12

[eluser]MianUsman[/eluser]
means sir can u explain what u r trying to say me,

Thanks for giving me time.
#13

[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
or
www.abc.com/fr/auction/test/nayyer/123

You're not even adding any extra characters to the URL, just changing the underscore to a forward slash
#14

[eluser]MianUsman[/eluser]
Smilei know but client dont want / this
this is my problem Smile
#15

[eluser]Dam1an[/eluser]
But they don't mind the other forward slashes?
Could you not have
Code:
something/(:any)_(:any)/something
or would that not work?

Actually, you would need regex, as :any would also match the underscore (I think)
#16

[eluser]MianUsman[/eluser]
oh really read me regex
#17

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

[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




Theme © iAndrew 2016 - Forum software by © MyBB