I have searched for the solution to my problem in CI user guide and on Stackoverflow as well but couldn't find. So, here is my problem.

I need to build SEO friendly URLs. I have a controller called "Outlets" and the view that I need to generate will have a URL structure like http://www.mysite.com/[city]/[area]/[outlet-name].

The segments city and area are fields in their respective tables and outlet\_name is a field in the table "Outlets".

I am able to generate a URL like <http://www.mysite.com/outlets/123> but how do I add the city and area name to the URL.