如何獲取加載視圖的值?codeigniter獲取視圖的值
$test = $this->load->view('testing',$data);
我怎樣才能將$this->load->view('testing',$data);
的內容傳遞給變量?
如何獲取加載視圖的值?codeigniter獲取視圖的值
$test = $this->load->view('testing',$data);
我怎樣才能將$this->load->view('testing',$data);
的內容傳遞給變量?
嘗試這樣.......
$test = $this->load->view('testing',$data,true);
整個視圖將在$test
字符串返回。
僅供參考,請通過這個鏈接
http://ellislab.com/codeigniter/user-guide/general/views.html
檢查在上面的鏈接
添加TRUE
作爲第三個參數:
$test = $this->load->view('testing',$data, TRUE);
$test = $this->load->view('testing',$data,true);
的頁面結束