$this->load->view('template',$val);模板中提示'未定义变量'
控制器中已定义$val="str";
$this->load->view('template',$val);
模版文件中提示:
A PHP Error was encountered
Severity: Notice
Message: Undefined variable: val
请问什么问题? $this->load->view('template',array('val'=>$val)); thanks~ 原来ci 是执行extract()
页:
[1]