2010年11月15日 星期一

[codeigniter] view return user php code

這是ci $this->load->view('xxx','path',true) ; 的code , 學起來.

ob_start();
if ($_ci_return === TRUE)
{
$buffer = ob_get_contents();
@ob_end_clean();
return $buffer;
}

【下列文章您可能也有興趣】

沒有留言: