1

I try to use template lib in my project. I do

$this->EE->load->library('template'); 
$this->EE->template->parse_globals($template_query->row('template_data'));

but I get fatal error

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

what I do wrong?

4

1 回答 1

2
$this->EE->template->parse_globals($template_query->row('template_data'));

should be:

$this->EE->TMPL->parse_globals($template_query->row('template_data'));
于 2013-02-06T19:34:41.920 回答