title: CakePHP: FlashComponent could not be found
body: <p>I am using CakePHP 2.6 and trying to follow along with the simple authentication tutorial.  I am using another model <code>Account</code> for my <code>Auth-&gt;User</code>.  After adding in the <code>Flash</code> component in my AppController - I'm seeing the error message on all of my pages:</p>
  
  <pre><code>Error: FlashComponent could not be found.
  
  Error: Create the class FlashComponent below in file: app\Controller\Component\FlashComponent.php
  
  &lt;?php
  class FlashComponent extends Component {
  
  }
  </code></pre>
  
  <p>Now I know that I currently do not have a FlashComponent.php file in <code>app\Controller\Component</code>, am I supposed to actually add it there?  I am not seeing anything in the tutorial about it.</p>
  
  <p>Thank you!</p>
  
  <p>AppController</p>
  
  <pre><code>    public $components = array(
      'Flash',
      'Auth' =&gt; array(
          'loginRedirect' =&gt; array(
              'controller' =&gt; 'accounts',
              'action' =&gt; 'index'
          ),
          'loginAction' =&gt; array(
              'controller' =&gt; 'accounts',
              'action' =&gt; 'login'
          ),
          'logoutRedirect' =&gt; array(
              'controller' =&gt; 'accounts',
              'action' =&gt; 'login',
          ),
          'authenticate' =&gt; array('Form' =&gt; array(
                      'userModel' =&gt; 'Account',
                      'passwordHasher' =&gt; 'Blowfish',
                       'fields' =&gt; array(
                                         'username' =&gt; 'email',
                                         'password' =&gt; 'token',
                                         )
                     )
          )
      )
  );
  
  public function beforeFilter() {
      $this-&gt;Auth-&gt;allow('index', 'view');
  }
  </code></pre>
  
  <p>Login.ctp</p>
  
  <pre><code>&lt;?php echo $this-&gt;Flash-&gt;render('auth'); ?&gt;
  &lt;?php echo $this-&gt;Form-&gt;create('Account', array('action' =&gt; 'login')); ?&gt;
  &lt;?php echo $this-&gt;Form-&gt;input('email', array('class' =&gt; 'form-control', 'type' =&gt; 'email', 'placeholder' =&gt; 'Email', 'label' =&gt; false)); ?&gt;    
  &lt;?php echo $this-&gt;Form-&gt;input('token', array('class' =&gt; 'form-control', 'type' =&gt; 'password', 'placeholder' =&gt; 'Password', 'label' =&gt; false)); ?&gt; 
  &lt;?php echo $this-&gt;Form-&gt;submit('Sign In', array('class' =&gt; 'btn btn-primary btn-block btn-flat')); ?&gt;
  &lt;?php echo $this-&gt;Form-&gt;end(); ?&gt;
  </code></pre>