Fatal error: Call to a member function createTemplate() on a non-object in
2014-04-22 21:28
489 查看
使用smarty出现出如此问题 百度百度 一直找一直找终于知道了,原来是继承smarty类时出现的问题:
需在继承类的构造函数里加一行:
parent::__construct();
构造函数为:
需在继承类的构造函数里加一行:
parent::__construct();
构造函数为:
相关文章推荐
- mysqli::stmt报Fatal error: Call to a member function bind_param() on a non-object in ...
- 【Fatal error: Call to a member function read() on a non-object in】
- 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 read() on a non-object in
- 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 bind_param() on a non-object in
- 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
- Fatal error: Call to a member function read() on a non-object in 错误解决方法
- 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 GetInnerText() on a non-object in ...
- 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 getData() on a non-object in /data/php/framework/exts/zii/wid
- Fatal error: Call to a member function read() on a non-object in 错误解决方法
- 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
- Web_PHP_织梦更新列表页提示Fatal error: Call to a member function GetInnerText() on a non-object in ...
- Fatal error: Call to a member function getSource() on a non-object in G:\wamp\www\ChinaMagicCube\ap