wildcard in routes
Hi all,
have been looking through the docs; does Slim handle wildcards at the end of a route? -E.g "/article/:id/*", where the wildcard basically disregards the last part, which in this case would be the article-title-slug.
Cheers,
Flemmingh
Comments are currently closed for this discussion. You can start a new one.
Support Staff 2 Posted by Josh Lockhart on 21 Feb, 2012 12:36 PM
That's on the road map for version 1.7.0.
3 Posted by Flemmingh on 21 Feb, 2012 01:57 PM
Cool! Thanks for the quick reply =)
4 Posted by nathanlogan on 21 Feb, 2012 05:57 PM
Flemming, I'm speaking out of ignorance here, but that may be something you could accomplish with a clever .htaccess file. I think. :)
5 Posted by Flemming on 22 Feb, 2012 08:18 AM
Hi Nathan; trying to avoid too much usage of .htaccess, so the simple solution was just to include a second optional param for the last part, since I already know that there will only one more part after the id, and that's the slug =)
Thanks for the suggestion.
Support Staff 6 Posted by Josh Lockhart on 24 Mar, 2012 07:44 PM
Closing this out.
Josh Lockhart closed this discussion on 24 Mar, 2012 07:44 PM.