CodeIgniter Forums
Problem whit flashdata - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forum-20.html)
+--- Forum: Archived General Discussion (https://forum.codeigniter.com/forum-21.html)
+--- Thread: Problem whit flashdata (/thread-57164.html)



Problem whit flashdata - El Forum - 02-21-2013

[eluser]suntzudennis[/eluser]
Hello.

I have problems when printing the flashdata. Verified in the database and there is it, but I do not understand why not printable .Not had problems in previous versions. I have this slight problem.

What am I doing wrong?

$this->session->set_flashdata('error','Error ...... log);
and
print this:
echo $this->session->flashdata('error');

¿?


Problem whit flashdata - El Forum - 02-21-2013

[eluser]suntzudennis[/eluser]
Hello All

I take the time to test each version from the version:

CodeIgniter V 2.1.3 (Current version)
CodeIgniter V 2.1.2
CodeIgniter V 2.1.1
CodeIgniter V 2.1.0
CodeIgniter V 2.0.3

All this one no print the flashdata.

with the same code works perfectly in this version CodeIgniter_2.0.2
Only in this version works perfectly flashdata.

This is my code:

$this->session->set_flashdata(‘loginerror’,‘Error en el logeo’);

and print this:

echo $this->session->flashdata(‘loginerror’);

Why is that? I have no idea.