In the description of the method of getChildHtml
it is said "Retrieve child block HTML"
In the description of the getChildBlock
method, it says "Retrieve child block by name".
But what is the difference?
1 Answer
As name suggest getChildHtml()
render the HTML of block if it find the block and getChildBlock()
will return only the Block object if it finds any block.
XML
file