CodeIgniter Forums
$this->data dosen't work - 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: $this->data dosen't work (/showthread.php?tid=59765)



$this->data dosen't work - El Forum - 11-14-2013

[eluser]mostafash[/eluser]
Hi there,
I want to retrieve session->flashdata from session->set_flashdata and send it to a form.But I have this problems:
1.if I use
Code:
$data['message'] = $this->session->flashdata('message');
instead of
Code:
$this->data['message'] = $this->session->flashdata('message');
,that don't send value to my form.
2.When I want to send multi session data like :
Code:
$this->data['message']    = $this->session->flashdata('message');
$this->data['message1']  = $this->session->flashdata('message1');
$this->data['message2']  = $this->session->flashdata('message2');
,that just use first line , other variables ( $this->data['message1'],$this->data['message2'] ) was 'Undefined'.
How can I fix this problem?
help me please Sad