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]
#5

[eluser]John_Betong[/eluser]
[quote author="meigallodixital" date="1226417492"]returns the same blank page, if i do:

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

works perfectly. The problem seems $data+true param[/quote]
 
 
If you are trying to use the TRUE parameter to save the contents of a partial view then you must assign the partial view to a variable:
Code:
$data['news'] = $this->db->get('news')->result();
  $partial_view = $this->load->view('news', $data, TRUE);
  echo $partial_view;
 
Have you read and understood Views
 
 


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-11-2008, 06:12 AM



Theme © iAndrew 2016 - Forum software by © MyBB