解决ThinkPHP Call to a member function assign() on a non-object
2016-12-07 14:10
399 查看
<ignore_js_op> assign是tp模板输出变量的一个方法.没有object只能说没实例化... <ignore_js_op> 经过几番思索,终于发现了.原来是Action里有构造函数覆盖了父类的构造函数. 正确应该这样.调用一下父类的构造函数. <ignore_js_op> 跑去父类看看 <ignore_js_op> 其实真正写应该是放在public function _initialize() {里面 |
相关文章推荐
- 解决ThinkPHP Call to a member function assign() on a non-object
- Thinkphp 出现 Call to a member function assign() on a non-object
- Call to a member function assign() on a non-object;thinkphp中报错
- ThinkPHP Call to a member function display() on a non-object问题的解决
- 解决 ECMall 错误 Call to a member function get() on a non-object in frontend.base.php
- 【TP3.2】Call to a member function display() on a non-object问题的解决
- 使用TP3.2框架时遇到Call to a member function assign() on a non-object
- Ecmail Call to a member function get_users_count() on a non-object解决方法
- Call to a member function display() on a non-object问题的解决
- Fatal error: Call to a member function fetch_array() on a non-object问题的解决办法
- Wordpress PHP Fatal error: Call to a member function get() on a non-object 解决方法
- ECmall错误:Call to a member function get_users_count() on a non-object in /home/dmg/wwwroot/includes/ecapp.base.php
- ECmall错误:Call to a member function get_users_count() on a non-object
- magento -- magento更新或安装模板时碰到Fatal error: Call to a member function toHtml() on a non-object
- Fatal error: Call to a member function getSource() on a non-object in G:\wamp\www\ChinaMagicCube\ap
- Fatal error: Call to a member function getSource() on a non-object in G:\wamp\www\ChinaMagicCube\ap
- :( Call to a member function Table() on a non-object 错误位置
- Fatal error: Call to a member function getSource() on a non-object in G:\wamp\www\ChinaMagicCube\ap
- Fatal error: Call to a member function getSource() on a non-object in G:\wamp\www\ChinaMagicCube\ap
- Fatal error: Call to a member function getSource() on a non-object in G:\wamp\www\ChinaMagicCube\ap