Exam4Training

How will this block be rendered?

You are adding a child node to the product.info block using the XML:

How will this block be rendered?
A . Child block nodes are automatically rendered as HTML
B . By calling $block->getChildHtml(‘mynewblock’) in the parent block’s template
C . The layout is invalid since block elements cannot be nested
D . Automatically if the block class Custom implements the _toHtml method

Answer: B

Exit mobile version