Welcome Guest, Not a member yet? Register   Sign In
(CLOSED) - Use of flashdata
#9

[eluser]jedd[/eluser]
Howdi. Not sure what the exact nature of the problem you had in that last message - perhaps you could elucidate on what you were trying to do, functionality-wise as well as the details on how you were trying to do it.

(Speculating wildly - you might want to look at the standard PHP functions - serialize and unserialize (?) - as ways of converting arrays into strings, and back again. I'm not sure how much space you get with flashdata - if it's subject to the 4KB limit - but I'm digressing now.)


Note that:

Quote:Ok, thanks for advices. But for this project, i want/need to use core functionnalities when they exist, as most as possible.

I was referring to CI Session data - see elsewhere on the [url="http://ellislab.com/codeigniter/user-guide/libraries/sessions.html"]Session[/url] page - which might be more useful for what you're trying to do.


Quote:In my template file :
Code:
<?php echo $this->session->flashdata('flashmsg'); ?>

With flashdata, you might be better off assigning it to a variable in your controller, and passing that variable to your view.


Messages In This Thread
(CLOSED) - Use of flashdata - by El Forum - 03-19-2009, 03:35 PM
(CLOSED) - Use of flashdata - by El Forum - 03-19-2009, 03:44 PM
(CLOSED) - Use of flashdata - by El Forum - 03-19-2009, 04:05 PM
(CLOSED) - Use of flashdata - by El Forum - 03-19-2009, 04:13 PM
(CLOSED) - Use of flashdata - by El Forum - 03-19-2009, 05:13 PM
(CLOSED) - Use of flashdata - by El Forum - 03-19-2009, 05:21 PM
(CLOSED) - Use of flashdata - by El Forum - 03-19-2009, 06:09 PM
(CLOSED) - Use of flashdata - by El Forum - 03-19-2009, 06:49 PM
(CLOSED) - Use of flashdata - by El Forum - 03-19-2009, 07:08 PM
(CLOSED) - Use of flashdata - by El Forum - 03-19-2009, 07:40 PM



Theme © iAndrew 2016 - Forum software by © MyBB