Skip to content

BC Break: Nette\Bridges\ApplicationLatte\Template has no "filters" #36

@fprochazka

Description

@fprochazka

We just started migrating from Nette 2.1-something and this was one of the issues we bumped into.

I know it's not a best practise, but often I would use the template object helpers in presenter or control.

For example let's have a price helper registered, you need to format a money object into flashMessage and you can either inject the helpers class and use that to format it, or just simply call $template->price($money) and use that in the flashMessage.

Now that the Nette\Bridges\ApplicationLatte\Template has no __call method, this stopped working.

This is not a critical issue, and you may decide to mark it as a wontfix, but I think it would be better to add the __call with deprecated trigger to the ApplicationLatte\Template class.

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