<ignore_js_op>解决ThinkPHP Call to a member function assign() on a non-object-LMLPHP 

assign是tp模板输出变量的一个方法.没有object只能说没实例化...
<ignore_js_op>解决ThinkPHP Call to a member function assign() on a non-object-LMLPHP 

经过几番思索,终于发现了.原来是Action里有构造函数覆盖了父类的构造函数.
正确应该这样.调用一下父类的构造函数.
<ignore_js_op>解决ThinkPHP Call to a member function assign() on a non-object-LMLPHP 

跑去父类看看
<ignore_js_op>解决ThinkPHP Call to a member function assign() on a non-object-LMLPHP 

其实真正写应该是放在public function _initialize() {里面
05-07 15:14