Welcome Guest, Not a member yet? Register   Sign In
Help with controllers, not routing correctly
#1

[eluser]ChaosKnight[/eluser]
Hi, I'm working on a tourism website, so there are lots of hotels, guest houses, etc. So I wanted to make a unique controller for each type. I created a controller, guest-houses.php, and named the class Guest-House. For some reason the router doesn't route it to that controller, is there some way to use a '-' in the class and route name and let it work properly?

This is my current route that I tried to use for that page:
Code:
$route['guest-houses/(:any)'] = "guest-houses/display/$1";

But it doesn't route to the guest-houses.php controller as I wanted it to.

Any ideas?


Messages In This Thread
Help with controllers, not routing correctly - by El Forum - 06-20-2010, 05:50 AM
Help with controllers, not routing correctly - by El Forum - 06-20-2010, 05:54 AM



Theme © iAndrew 2016 - Forum software by © MyBB