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 -

multithreading - Exception in Application constructor -

windows - CertCreateCertificateContext returns CRYPT_E_ASN1_BADTAG / 8009310b -