This session set flashdata codeignitor

Hi guys how to set flashdata in ci
Deepak Sharma
Asked 03-11-2019
9

Answer (1)
Hi use this code //How to set flash data $this->session->set_flashdata('alert', 'This is my message'); // After that you need to used redirect function goes on previous page redirect("students/studentList"); // How to get flash data on view $this->session->flashdata('alert')
Ankur Rajput
Asked 04-10-2019
45 Likes
Comments
Write comment

Submit your answer