labels icon indicating copy to clipboard operation
labels copied to clipboard

Use of labels in custom extension

Open MarienTimOnline opened this issue 7 years ago • 1 comments

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.

MarienTimOnline avatar Sep 28 '17 10:09 MarienTimOnline

See also #46

xiaohutai avatar Oct 30 '17 11:10 xiaohutai