在我使用的插件中:
$this->return_data = json_encode(array('loggedin' => $LoggedIn, 'Cust_ID' => $Participant_ID));
在模板中我这样称呼它
$custinfo = {exp:user_loggedin};
它像这样返回它:
$custinfo = {"loggedin":"no","Cust_ID":-1};
我得到这个错误:
PHP Parse error: syntax error, unexpected '{' in expressionengine/libraries/Functions.php(642) : eval()'d code on line 656
如果我使用
$custinfo = json_decode({exp:user_loggedin})
我收到此错误:
PHP Parse error: syntax error, unexpected '{', expecting ')' in expressionengine/libraries/Functions.php(642) : eval()'d code on line 656
有任何想法吗??