![]() |
Flashdata redirect - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20) +--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forumdisplay.php?fid=23) +--- Thread: Flashdata redirect (/showthread.php?tid=29002) |
Flashdata redirect - El Forum - 03-27-2010 [eluser]Kemik[/eluser] Hi guys, I'm trying to save a flashdata message once the user fills out a form to create a client and have it display when the user is redirected. clients/create controller Code: function create() clients view Code: <h2>Clients</h2> It seems like the flashdata isn't even created as no text box is displayed. Any suggestions? Session is set in the autoloader. Flashdata redirect - El Forum - 03-27-2010 [eluser]Tominator[/eluser] Why are you using flashdata in this case? Flashdata redirect - El Forum - 03-27-2010 [eluser]Kemik[/eluser] [quote author="Tominator" date="1269730082"]Why are you using flashdata in this case?[/quote] Because the user gets redirected back to the clients controller from several others, including clients/delete, clients/edit and clients/create so they need different messages for each successful action. Flashdata redirect - El Forum - 03-27-2010 [eluser]Tominator[/eluser] Oh, I am sorry ... stupid question ![]() But, I have next stupid question: Do you have initialized session? ($this->load->library('session'); or auto-loaded) Flashdata redirect - El Forum - 03-27-2010 [eluser]Kemik[/eluser] [quote author="Tominator" date="1269736098"]Oh, I am sorry ... stupid question ![]() But, I have next stupid question: Do you have initialized session? ($this->load->library('session'); or auto-loaded)[/quote] Yup. The session table shows "a:1:{s:13:"flash:new:msg";s:28:"Client updated suc..." in the database. |