Welcome Guest, Not a member yet? Register   Sign In
URI routing to give impression of directories
#3

[eluser]vishok[/eluser]
i'm working on a cms based on codeigniter. I make a controller named 'page' and in it a function named 'index'. In my routes.php i write this $route['en/([\\w.-]*)'] = "page/index/en/$1". So every time i wrote something like this http://mysite.com/en/hotel_eden in address bar of my browser codeigniter call the controller 'page' and the function 'index'. By uri segment i take the rest to call the right view and show it. Now i would like to assign dynamically a category to my page. es. i'd like to have something like this http://mysite.com/en/hotel/hotel_eden and get the same page. Is it possible?


Messages In This Thread
URI routing to give impression of directories - by El Forum - 08-18-2010, 08:05 AM
URI routing to give impression of directories - by El Forum - 08-18-2010, 08:10 AM
URI routing to give impression of directories - by El Forum - 08-18-2010, 09:39 AM
URI routing to give impression of directories - by El Forum - 08-18-2010, 10:08 AM



Theme © iAndrew 2016 - Forum software by © MyBB