wildcard in routes

flemming hansen's Avatar

flemming hansen

21 Feb, 2012 11:44 AM via web

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

  1. Support Staff 2 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. 3 Posted by Flemmingh on 21 Feb, 2012 01:57 PM

    Flemmingh's Avatar

    Cool! Thanks for the quick reply =)

  3. 4 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. 5 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 6 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.

Recent Discussions

17 May, 2012 04:51 PM
17 May, 2012 01:17 PM
17 May, 2012 12:22 AM
17 May, 2012 12:05 AM