CodeIgniter “flashdata” doesn't work

前端 未结 12 2041
灰色年华
灰色年华 2020-12-03 18:10

I use CodeIgniter 2.1.0, i want after insert data in database get a message like \"Your information was successfully updated.\". For this work i have in CI_Controller follow

12条回答
  •  被撕碎了的回忆
    2020-12-03 18:50

    I know I am very late but I was having this problem and I couldn't believe that in my case the solution was very easy

    just replace

    $this->session->flashdata('message');
    

    to

    print_r($this->session->flashdata('message'));
    

提交回复
热议问题