CodeIgniter Forums
Loading multiple Dynamic Data Variables in ($this->load->view('view', $data);) - 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: Loading multiple Dynamic Data Variables in ($this->load->view('view', $data);) (/thread-12601.html)



Loading multiple Dynamic Data Variables in ($this->load->view('view', $data);) - El Forum - 10-24-2008

[eluser]JayArias[/eluser]
I have a string
Code:
$this->load->view('view', $data);

how can i load multiple data variables? I am basically trying to load two arrays


Loading multiple Dynamic Data Variables in ($this->load->view('view', $data);) - El Forum - 10-24-2008

[eluser]JayArias[/eluser]
anyone :'(?


Loading multiple Dynamic Data Variables in ($this->load->view('view', $data);) - El Forum - 10-24-2008

[eluser]Dewos[/eluser]
Code:
$data['array_one'] = array();

$data['array_two'] = array();

$this->load->view('view', $data);



Loading multiple Dynamic Data Variables in ($this->load->view('view', $data);) - El Forum - 10-24-2008

[eluser]JayArias[/eluser]
ok, thanks ^_^