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
3
As name suggest getChildHtml()
render the HTML of block if it find the block and getChildBlock()
will return only Block object it it find any block.
XML
file – Keyur Shah May 7 '18 at 10:51