mapkillo.blogg.se

Bootstrap growl notification in codeigniter
Bootstrap growl notification in codeigniter













$this->session->set_flashdata('warning', 'Something is wrong.') $this->session->set_flashdata('error', 'Something is wrong.') $this->session->set_flashdata('success', 'User Updated successfully') you have to just copy of welcome.php controller file:Īpplication/controllers/MyFlashController.php In this step we require to create new MyFlashController controller, In that controller file we will write method for each flash example.So let's add with following code. Read Also: Jquery notification popup box example using toastr JS plugin with demo So let's add bellow routes in route file.ĭefined('BASEPATH') OR exit('No direct script access allowed') this example is from scratch so you can check each alert with demo. In this step, we will add one routes for demo. In First step we will download fresh version of Codeigniter 3, so if you haven't download yet then download from here : Download Codeigniter 3. So let's proceed to make example from scratch. toastr plugin is open source and pretty easy to use. toastr provide us success, error, warning and info layout of notification. We will use toastr plugin for display alert with pretty good layout.

Bootstrap growl notification in codeigniter how to#

So in this example i will learn how to display success message, error message, warning message and info message in codeigniter project. Same as for others like any info, any errors come, any warning etc. Today, i going to share with you how to display flash alert message in codeigniter application.Īs we know, flash message(notification) feature is very important because client 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 your index page.













Bootstrap growl notification in codeigniter