![]() |
How To Show Success Message In Codeigniter? - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Using CodeIgniter (https://forum.codeigniter.com/forumdisplay.php?fid=5) +--- Forum: General Help (https://forum.codeigniter.com/forumdisplay.php?fid=24) +--- Thread: How To Show Success Message In Codeigniter? (/showthread.php?tid=77298) |
How To Show Success Message In Codeigniter? - robertlook - 08-13-2020 Today we will learn how to display flash alert messages in Codeigniter application. As we know, flash message(notification, alert) feature is very important because clients can understand their work is success or any error like if you create new user successfully then after create user successfully flash message will come on main page. Same as for others like any type of error like success, error, warning etc. So in this example, I will learn how to display all type messages (alert), in Codeigniter project.
we will use toastr for display alert with good layout. toastr provide us any type of alert layout of notification. toastr is open source and easy to use. So let's start the make example from scratch.Downlaod Codeigniter 3 PHP Code: <?php [b][b]application/controllers/firstcontroller.php[/b][/b] PHP Code: <?php [b][b]application/views/MainPage.php[/b][/b] PHP Code: <!DOCTYPE html> [b][b]application/views/alert.php[/b][/b] Code: <script src="https://cdnjs.cloudflare.com/ajax/libs/toastr.js/latest/js/toastr.min.js"></script> Read More: Go To This Link phpcodingstuff.com/blog/how-to-show-success-message-in-codeigniter.html RE: How To Show Success Message In Codeigniter? - kleber - 08-31-2020 Good start. But there is too much code for a simple task. You can do this with one method and without the selection statements. |