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

[eluser]John_Betong[/eluser]
 
I reckon the problem could be on any one of your lines of code so suggest inserting this code.
It will show where the data is not appearing:
 

Code:
function _show($data) { // '_' prefix to denote private function to this class

    echo '</pre>';
      print_r($data);
    echo '</pre>';
    echo '<br /><br /><br /><br />';

  }//endfunc  
  

  function index_or_whatever() {

    $data['news'] = $this->db->get('news')->result();
    _show($data['news']);

    $web['content'] = $this->load->view('news',$data,TRUE);
    _show($web['content']);

    _show($web);
    $this->load->view('template',$web);
  }//endfunc
&nbsp;
&nbsp;
&nbsp;


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, 08:01 PM



Theme © iAndrew 2016 - Forum software by © MyBB