I am doing some M2 fundamentals online training
, the system is telling me that one of these answers is incorrect...
Question 1: Which of these directives will assign a template to a block in a layout xml
file
Answer 1 : <block template="test.phtml">
Question 2 : Which block methods are available in a template?
Answer 2 : Only public methods
.
I have tested both of these and they both seem to be right. Is it a trick question ?
Can anyone shed some light before I tear my hair out?