CodeIgniter Forums

Full Version: remap sample? ... differents languages.
You're currently viewing a stripped down version of our content. View the full version with proper formatting.

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.

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.