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

Redirect back with input

mathew.hanybb's Avatar

mathew.hanybb

05 May, 2015 04:21 PM

I was looking for the best practice to redirect back with the input, like Redirect::back()->withInput() in Laravel, but I wanna make it with Slim. How?

  1. 1 Posted by geggleto on 15 May, 2015 02:29 PM

    geggleto's Avatar

    Use flash messages, this requires the use of sessions.

    $app->flash('notice', 'my notice');
    $app->redirect();

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