Created
May 21, 2015 01:22
-
-
Save cholnhial/d0f99e6ec02ca46accdf to your computer and use it in GitHub Desktop.
Modifying auth error message CakePHP 3.0
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-- Templates/Element/Flash/login-error.ctp: | |
<div class="alert alert-danger alert-dismissable"> | |
<button type="button" class="close" data-dismiss="alert" aria-hidden="true">×</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