Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Denotes the xml files used to define the block hierarchy which eventually renders the template files.

Layout includes the xml files used to render the template files. Both adminhtml and frontend uses the layout files. Layout files are usually used to relate the block and template files so that the template files can access the related functions from their block files.

All module layout files are merged before the layout is processed. Which declarations are used, is determined with layout handles. There are layout handles for each route, for different product types, for "logged in" and "logged out" and others.

The layout handles then define a hierarchy of blocks that are rendered with their toHtml() method, usually with a phtml template.

history | excerpt history