时间:2021-07-01 10:21:17 帮助过:5人阅读
assign('name2',$name); //问题1: 这里会报错 syntax error, unexpected T_OBJECT_OPERATOR this->display(); }}
this is view
{$name2} //echo $name2; ?>
我是参照了thinkphp3.1的写法,但是在3.2中,好像这样写是不对的,
this->assign 和 this->display 这两个写法都会报错
请把$还给this
this 应为 $this
我又二了。。。