Skip to content

Issue with register function method in library #9

@DurbanVisuals

Description

@DurbanVisuals

Thanks for this first of all. But I am getting this error when calling the method to add a custom function:

Message: Argument 2 passed to Twig::register_function() must implement interface Twig_FunctionInterface, none given,

And I was calling something like this $this->twig->register_function('test', $template);

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions