regex in route.php |
[eluser]neph[/eluser]
i'm trying to figure out a way to set up a conditional for not equal to in the route.php file. $route['!=admin'] = 'home/index'; i have a pretty basic cms that is pulling the actual page markup/content from the database but i want the pages to show up without having to provide a controller name in the url, the only work around i've gotten so far is running a switch in my admin controller for each of those functions and setting a static route for it so www.site.com/pagename would do a $route[':any'] = "pages/view", works but it causes conflicts with my admin section. so..in short is there a way to do (:any if not equal to 'admin') as part of the regex in the route.php file? |
Messages In This Thread |
regex in route.php - by El Forum - 05-03-2009, 10:10 PM
regex in route.php - by El Forum - 05-04-2009, 02:00 AM
|