title: CakePHP 3.0 Flash Message
body: <p>In CakePHP 2.0, I can check if there a flash message by using</p>
  
  <pre><code>if($session-&gt;check('Message.flash')){...}
  </code></pre>
  
  <p>I understand that in CakePHP 3.0, I read the <a href="http://book.cakephp.org/3.0/en/controllers/request-response.html#checking-request-conditions" rel="nofollow">doc</a> that I can check if there a flash message by using</p>
  
  <p><strong>Layout</strong>  </p>
  
  <pre><code>echo $this-&gt;Flash-&gt;render('auth');
  </code></pre>
  
  <p><strong>Template/Users/login</strong>  </p>
  
  <pre><code>echo $this-&gt;Flash-&gt;render();
  if($this-&gt;request-&gt;is('flash')){...}else{...}
  </code></pre>
  
  <p>But in my view is when I added the above condition is not showing anything. My controller code is below</p>
  
  <pre><code>$this-&gt;Flash-&gt;error('The email address and/or password you specified are not correct.');
  return $this-&gt;redirect(array('controller'=&gt;'users', 'action' =&gt; 'login'));
  </code></pre>
  
  <p>Can anyone point to me what else is missing? I want to check if a flash message is shown in CakePHP 3.0. Thanks.</p>