keep_flashdatabug ? - 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: keep_flashdatabug ? (/showthread.php?tid=38927) |
keep_flashdatabug ? - El Forum - 02-23-2011 [eluser]Ricola[/eluser] hi there i'm trying to use session library everything seems good except " keep_flashdata " i wrote a simple code by using keep_flashdata to store my session data like a code below : class Test extends MY_Controller { Code: function __construct() the point is every method in test controller (test1,test2) doesn't show up anything i don't know what exactly reason but if i remove or comment " keep_flashdata " everything works fine. I think it is a simple code for test , so it would not happen by my mistake thank you I'm using codeigniter 2.0(official) PHP 5.2.6 Complied by my own computer (Windows 7) keep_flashdatabug ? - El Forum - 02-23-2011 [eluser]Cristian Gilè[/eluser] Quote:CodeIgniter supports "flashdata", or session data that will only be available for the next server request, and are then automatically cleared....If you find that you need to preserve a flashdata variable through an additional request, you can do so using the keep_flashdata() function. Your code is good but you are using flashdata in the wrong way. Copy this code and type http://yourwebsite/index.php/test Code: class Test extends MY_Controller { Cristian Gilè keep_flashdatabug ? - El Forum - 02-23-2011 [eluser]Ricola[/eluser] thank you ,Cristian it helps !! keep_flashdatabug ? - El Forum - 02-23-2011 [eluser]Ricola[/eluser] well, this is codeigniter forum i don't think it is java |