Created
September 8, 2015 15:25
-
-
Save tuki0918/250fd56a164061f46650 to your computer and use it in GitHub Desktop.
slim flash message
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$app->map('/abc', '\App\Controller\UserController:abc') | |
->via('GET', 'POST') | |
->name('abcname'); | |
if ($this->app->request()->isPost()) { | |
$this->app->flash('err', 'message!!!'); | |
$this->app->redirect($this->app->urlFor('abcname')); | |
} | |
{{ flash.err }} | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment