What are Decorators in the Zend framework?

Member

bria_metz

by bria_metz , in category: Technology , 2 months ago

What are Decorators in the Zend framework?

Facebook Twitter LinkedIn Telegram Whatsapp

1 answer

Member

by zella , 2 months ago

Zend framework utilizes the decorator pattern to render elements and forms. The decorator is quite generally used to comply with the single responsibility principle as it admits functionality to be divided in between classes with unique areas of concern. One basic technique to define a common decorator pattern is a design that allows the behavior to be added to a particular object, either statically or dynamically, without having any effect on the behavior of various other objects from the same class.