In CI, I have made 2 projects for same site in 2 language. Now based on some condition say continent from where the site is opened I want to change the view of the site. E.g. If I open the site from Asia, english language site will open and if I open the same site from South America, spanish language site will open. I am successful in finding from where the site is being opened from but I am not able to point to different folders based on the continent. How am I to achieve this? I have placed english folder and spanish folder in public_html.
Any help/suggestions will be welcome.