Skip to content

Better adding formatter in controller than view? #3

@supernaut42

Description

@supernaut42

Hi,

II have a minor idea for improvement/discussion:

In session 15 you add the formatter in the view via require. This gave me problems accessing the e.g. i18n model in the formatter. Is it a better approach to add the formatter as controller attribute, so you have full access to the view?

Thank you for the great content!

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