The Slim Framework support forum has moved to http://discourse.slimframework.com. This Tender forum is no longer maintained or monitored.

Can I add middleware in a route middleware?

zhengwenbing119's Avatar

zhengwenbing119

07 Jul, 2012 08:14 AM

as the Subject descripted, I want run some moddleware for only some route, can I do that?

  1. Support Staff 1 Posted by Brian Nesbitt on 07 Jul, 2012 12:54 PM

    Brian Nesbitt's Avatar

    To run a middleware for only some routes you can use route middleware:

    http://www.slimframework.com/documentation/stable#routing-middleware

Reply to this discussion

Internal reply

Formatting help / Preview (switch to plain text) No formatting (switch to Markdown)

Attaching KB article:

»

Attached Files

You can attach files up to 10MB

If you don't have an account yet, we need to confirm you're human and not a machine trying to post spam.

Keyboard shortcuts

Generic

? 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