Skip to content

Instantly share code, notes, and snippets.

@cholnhial
Created May 21, 2015 01:22
Show Gist options
  • Save cholnhial/d0f99e6ec02ca46accdf to your computer and use it in GitHub Desktop.
Save cholnhial/d0f99e6ec02ca46accdf to your computer and use it in GitHub Desktop.
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']) ?>
..
....
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment