The Slim Framework support forum has moved to This Tender forum is no longer maintained or monitored.

wildcard in routes

flemming hansen's Avatar

flemming hansen

21 Feb, 2012 11:44 AM

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.


  1. Support Staff 1 Posted by Josh Lockhart on 21 Feb, 2012 12:36 PM

    Josh Lockhart's Avatar

    That's on the road map for version 1.7.0.

  2. 2 Posted by Flemmingh on 21 Feb, 2012 01:57 PM

    Flemmingh's Avatar

    Cool! Thanks for the quick reply =)

  3. 3 Posted by nathanlogan on 21 Feb, 2012 05:57 PM

    nathanlogan's Avatar

    Flemming, I'm speaking out of ignorance here, but that may be something you could accomplish with a clever .htaccess file. I think. :)

  4. 4 Posted by Flemming on 22 Feb, 2012 08:18 AM

    Flemming's Avatar

    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.

  5. Support Staff 5 Posted by Josh Lockhart on 24 Mar, 2012 07:44 PM

    Josh Lockhart's Avatar

    Closing this out.

  6. Josh Lockhart closed this discussion on 24 Mar, 2012 07:44 PM.

Comments are currently closed for this discussion. You can start a new one.

Keyboard shortcuts


? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac