cholnhial
5/21/2015 - 1:22 AM

Modifying auth error message CakePHP 3.0

Modifying auth error message CakePHP 3.0


-- Templates/Element/Flash/login-error.ctp: 

<div class="alert alert-danger alert-dismissable">
  <button type="button" class="close" data-dismiss="alert" aria-hidden="true">&times;</button>
  <?= h($message) ?>
</div>

-- Templates/Users/login.ctp:
    /* Put where you want to display the error messages */
   <?= $this->Flash->render('flash', ['element' => 'Flash/login-error']) ?>
..
....