08-13-2020, 04:10 AM (This post was last modified: 08-13-2020, 05:11 AM by php_rocs.)
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 defined('BASEPATH') OR exit('No direct script access allowed');