Block-Template Design System
4. Effectively use the Magento Block-Template Design System (11%)
Key Areas of Study
- Understand how Layout XML,
.phtml
template files and .php
Block files relate to each other
- Know your block types (structural, content - and specific types)
Questions
4.1 Which is the correct type attribute for a structural block?
A. page/html
B. core/html_wrapper
C. core/template
D. core/text_list
4.2 What does $this refer to in template files?
A. $this refers to the template and variables set within the template file
B. $this refers to the controller file and allows access to controller methods
C. $this refers to the block instance of the template we are currently using
D. $this refers to the Magento database