In product filter phtml file Magento call a function getHtml().
What is getHtml() in Magento and what was diff between getHtml() & getChildHtml().
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Programmatically
getHtml()is a public method for calling the protected rendering methodMage_Core_Block_Template::_toHtml(), whilegetChildHtml()attempts to find a block instance from the calling block’s_childrenarray and return the value of its rendering using the more commonMage_Core_Block_Abstract::toHtml()method.Architecturally I’m not 100% clear on any intent beyond shaving off minuscule processing overhead, inline translation, and cache writing for these filter block instances.