我尝试在项目中使用template
lib。我做了
$this->EE->load->library('template');
$this->EE->template->parse_globals($template_query->row('template_data'));
但我得到致命错误
Severity: Notice
Message: Undefined property: EE::$template
Filename: member_sync/mod.member_sync.php
Line Number: 158
Fatal error: Call to a member function parse_globals() on a non-object in /Library/Server/Web/Data/Domains/henigdiamondscouk/public-html/henig-cp/expressionengine/third_party/member_sync/mod.member_sync.php on line 158
我做错了什么?
答案 0 :(得分:2)
$this->EE->template->parse_globals($template_query->row('template_data'));
应该是:
$this->EE->TMPL->parse_globals($template_query->row('template_data'));