Welcome Guest, Not a member yet? Register   Sign In
How do I route "mysite.com/clean-article-title" to the correct controller ?
#4

[eluser]Bramme[/eluser]
[quote author="little brittle" date="1212204522"]Well, that would work. But wouldn't you have to specify all of your controllers in the 'routes' file before that line? Right now it doesn't check for a controller match and thinks everything is a blog article.[/quote]

True, everything will be a blog entry... I don't really know how els you could do it... You could try smth like mysite.com/blog-clean-title/ and then use regex to cut off the blog, incicating it's a blog entry...

Sudden idea: you can use multiple routes. For instance, you could use:

$route['([a-z0-9-]+)'] = "blog/blahblah/$1";
$route['controller/(:any)'] = "controller/$1";

etc...


Messages In This Thread
How do I route "mysite.com/clean-article-title" to the correct controller ? - by El Forum - 05-31-2008, 02:19 AM



Theme © iAndrew 2016 - Forum software by © MyBB