Zend Framework 2 view helper and controller plugin -


i've been trying out zf2 couple of weeks , enjoy working it. have trouble though deciding specific tasks. function belong in model or in controller etc. @ moment understand view helper , controller plugin concepts. give few examples kind of functionality belongs in view helper? know same controller plugin, few examples make me understand why make plugin instead of programming functionality in controller?

view helpers extend functionality on view layer , reusability throughout application. controller plugins extend functionality on controller layer.

you use both keep controllers / views light , thin , reuse in application (keeping code dry).


Comments

Popular posts from this blog

how to insert data php javascript mysql with multiple array session 2 -

c++ - How to test/verify that zero-initialization takes place -

node.js - Webpack/TypeScript Raising Errors When node_modules is Excluded -