Created
January 25, 2013 03:52
-
-
Save eduardoromero/4631616 to your computer and use it in GitHub Desktop.
Foundation formated divs for Cake's Flash message.
This file contains 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
<div class="alert-box alert"> | |
<?php echo $message ?> | |
<a href="" class="close">×</a> | |
</div> |
This file contains 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
<div class="alert-box secondary"> | |
<?php echo $message ?> | |
<a href="" class="close">×</a> | |
</div> |
This file contains 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
<div class="alert-box success"> | |
<?php echo $message ?> | |
<a href="" class="close">×</a> | |
</div> |
This file contains 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
<div class="alert-box"> | |
<?php echo $message ?> | |
<a href="" class="close">×</a> | |
</div> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
On the controller just use
The second param is the template to use. It could probably be merged as one and get the type of box in the params of the call, but I'm lazy.