CodeIgniter Forums
remap sample? ... differents languages. - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Using CodeIgniter (https://forum.codeigniter.com/forumdisplay.php?fid=5)
+--- Forum: General Help (https://forum.codeigniter.com/forumdisplay.php?fid=24)
+--- Thread: remap sample? ... differents languages. (/showthread.php?tid=61690)



remap sample? ... differents languages. - chocovo - 05-06-2015

Hello,

I'm trying to customize urls for differents languages.

In database I have saved differents "slugs" and as you can imaging, they are differents than controller function names.

I tried to include a function into routes.php to associate slug with controller function name but no success. I think it is not possible to add functions in routes.php file, isn't it?

So, the second option that I am investigating is the remap function.
http://www.codeigniter.com/userguide3/general/controllers.html?highlight=remap#remapping-method-calls

But I don't understand the guide and with the guide example, I am not able to understand it and do what I want.

Can somebody share or explain better remap function code?

Thank you.
Best.