-
-
Save RajeshPatadiya/2e393d1f7932e49d91cca8a07eed8a3b to your computer and use it in GitHub Desktop.
Show Flash Message On Codeigniter View using sweetalert
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
<?php if ($this->session->flashdata('flash_message')): ?> | |
<script> | |
swal({ | |
title: "Done", | |
text: "<?php echo $this->session->flashdata('flash_message'); ?>", | |
timer: 1500, | |
showConfirmButton: false, | |
type: 'success' | |
}); | |
</script> | |
<?php endif; ?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment