How could I use a translation inside a custom extension (bolt 2.2, so older install) ?
In twig I can use {{ l('something') }} but I need it in my php-code.
Simply trying the l('something') method in php results in
Error: Call to undefined function Bolt\Extension\TimOnline\Contact\l()
Hi there,
How could I use a translation inside a custom extension (bolt 2.2, so older install) ? In twig I can use {{ l('something') }} but I need it in my php-code.
Simply trying the l('something') method in php results in
Error: Call to undefined function Bolt\Extension\TimOnline\Contact\l()
Hope you can help.