Keep ALL flashdata? - 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 ALL flashdata? (/showthread.php?tid=15380) |
Keep ALL flashdata? - El Forum - 02-02-2009 [eluser]sheldonnbbaker[/eluser] I have an asset controller which loads my CSS, JS, and PNGs (there isn't any direct access to the .css, .js, or .png files). However, this messes up any flashdata stuff - so if I set_flashdata('foo, 'bar') in my controller, it'll die in the next server request of course, which just so happens to be my asset controller. So, instead of doing this: Code: keep_flashdata('item1'); I'd like to just do this: Code: keep_flashdata(); Keep ALL flashdata? - El Forum - 07-23-2011 [eluser]solepixel[/eluser] Not sure if you ever found a solution for this, but I wrote this in order to hang onto any flashdata during a 301 redirect. Hope it works for you Code: <?php (defined('BASEPATH')) OR exit('No direct script access allowed'); |