[eluser]Unknown[/eluser]
I'm building a site that has a few Controllers for hard-coded 'modules' as well as a fairly simple 'CMS' style pages Controller.
My idea was to have URL paths like:
Code:
site.com/module1/action/...
site.com/module2/action/...
Which route in the normal controller/function/param fashion and anything else is a 'CMS' page:
Code:
site.com/about-us
site.com/contact-us
Which would map to site.com/pages/page/about-us, site.com/pages/page/contact-us.
So far I've come up with something like this in routes.php:
Code:
$route['module1'] = 'module1';
$route['module1/(.*)'] = "module1/$1";
...
$route['(.*)'] = "pages/page/$1";
Am I on the right track here?