Skip to content

Use of labels in custom extension #53

@MMelisseOmniboost

Description

@MMelisseOmniboost

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions