Welcome Guest, Not a member yet? Register   Sign In
Save query in pagination
#5

[eluser]flaky[/eluser]
Have you considered flashdata ?
http://ellislab.com/codeigniter/user-gui...sions.html


Quote:Flashdata

CodeIgniter supports "flashdata", or session data that will only be available for the next server request, and are then automatically cleared. These can be very useful, and are typically used for informational or status messages (for example: "record 2 deleted").

Note: Flash variables are prefaced with "flash_" so avoid this prefix in your own session names.

To add flashdata:

Code:
$this->session->set_flashdata('item', 'value');

You can also pass an array to set_flashdata(), in the same manner as set_userdata().

To read a flashdata variable:

Code:
$this->session->flashdata('item');

If you find that you need to preserve a flashdata variable through an additional request, you can do so using the keep_flashdata() function.

Code:
$this->session->keep_flashdata('item');


Messages In This Thread
Save query in pagination - by El Forum - 12-17-2009, 07:04 PM
Save query in pagination - by El Forum - 12-17-2009, 07:13 PM
Save query in pagination - by El Forum - 12-17-2009, 07:23 PM
Save query in pagination - by El Forum - 12-18-2009, 04:51 AM
Save query in pagination - by El Forum - 12-18-2009, 08:31 AM
Save query in pagination - by El Forum - 12-18-2009, 11:49 AM
Save query in pagination - by El Forum - 12-22-2009, 01:09 PM



Theme © iAndrew 2016 - Forum software by © MyBB