Forums

How to get translation string in php

riccardoc 12 Oct, 2020
Hi,

I'm trying to read a translated value in php, in another thread the answer was:
$this->Parser->parse("{l:MYSTRING}");
but if I add this to my form, changing MYSTRING with a value added to my translation tab, when I open the form I get this error "0 CALL TO A MEMBER FUNCTION PARSE() ON NULL", any suggestion?

Thanks in advance
You need to login to be able to post a reply.