jcropp
jcropp

Reputation: 1246

where to write ZF2 form view helpers

I want to write some custom view helpers that can be used universally by all of the forms in each of my modules. Where should I write the helpers? How can I write the view_helpers invokables statement in a project-level config file to avoid having to write it in every module.config?

Upvotes: 0

Views: 55

Answers (1)

Tim Fountain
Tim Fountain

Reputation: 33148

You only have to put the invokable configuration in one of the module configs, you'll be able to use the view helpers in any module. Nothing is module-specific in ZF2.

Upvotes: 1

Related Questions