What are Decorators in the Zend framework?

devquora
devquora

Posted On: Feb 22, 2018

 

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.

    Related Questions

    Please Login or Register to leave a response.

    Related Questions

    Zend Framework Interview Questions

    What is Zend Framework? What is the use of it?

    The Zend framework is an open source structure for creating object-oriented web applications using PHP 5. The main pur..

    Zend Framework Interview Questions

    Which version of PHP does Zend Framework require?

    Zend Framework requires PHP 5.2.4 and up. Zend framework is enhanced to utilize all of the object-oriented features of..

    Zend Framework Interview Questions

    How to check whether a form posted or not in the Zend framework?

    We can check whether a form is posted or not in Zend Framework in major two ways-: Process the form submission and st..