Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use of labels in custom extension #53

Open
MarienTimOnline opened this issue Sep 28, 2017 · 1 comment
Open

Use of labels in custom extension #53

MarienTimOnline opened this issue Sep 28, 2017 · 1 comment

Comments

@MarienTimOnline
Copy link

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.

@xiaohutai
Copy link
Contributor

See also #46

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants