Back to Slim

Next

docs/v2/flash/next.md

latest271 B
Original Source

The Slim application’s flash() method sets a message that will be available in the next request’s view templates. The message in this example will be available in the template variable flash['error'].

<?php
$app->flash('error', 'User email is required');