Hello.
Can someone help me with this?
I have a snippet which contains something like this:
$params = array(
'code' => 'A',
'name' => 'B',
'value' => 'C'
);
return $modx->parseChunk('ATpl', $params, '[+', '+]');
The chunk ATpl is this:
<p>[+code+] ..... [+name+] ..... [+value+]</p>
When using the snippet on a web page, I get this error:
Fatal error: Call to a member function parseChunk() on a non-object in /home/dailyinf/public_html/manager/includes/document.parser.class.inc.php(769) : eval()’d code on line 69
Same thing happens if I’m using setPlaceholder & getChunk.
What am I doing wrong?
PS: I’m new to MODx, so I’m pretty sure I did something stupid