Welcome Guest, Not a member yet? Register   Sign In
how to route country region state
#1

so this is my first post and would like to know how i would create a routeĀ 

so i have a country controller.

localhost/country/india

this page displays a list of regions in india.

so i have a controllerĀ 

localhost/region/southernindia

i want my url to look like this

localhost/india/southernindia

what would be best practice
Reply
#2

@lancomm,

The CI documentation should be helpful to you ( https://codeigniter.com/user_guide/gener...ri-routing ). Also, you might want to take a look at this too ( https://www.codeigniter.com/userguide3/g...niter-urls ).
Reply




Theme © iAndrew 2016 - Forum software by © MyBB