Welcome Guest, Not a member yet? Register   Sign In
blank page when i try to get $this->load->view into a var with third param on true [SOLVED]
#1

[eluser]meigallodixital[/eluser]
i'm trying to save a view into a var with this code:

Code:
$data['news'] = $this->db->get('news')->result();
$web['content'] = $this->load->view('news',$data,TRUE);
$this->load->view('template',$web);

news view is a foreach loop with echos. But this code gives a blank page. If i omit $data:
Code:
$this->load->view('news','',TRUE)

works, anyone knowns why?

Thanks in advance. Sorry, my english is very bad Smile


Messages In This Thread
blank page when i try to get $this->load->view into a var with third param on true [SOLVED] - by El Forum - 11-10-2008, 07:40 PM



Theme © iAndrew 2016 - Forum software by © MyBB