Next

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'].

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