问题
In welcome.php file of magento 1.7
Mage::app()->getLayout()->getBlock('header')->getWelcome(); getBlock('header')
returning false
please check code sample.
protected function _toHtml()
{
if (isset($this->_blocks[$name])) {
echo $this->_blocks[$name];
} else {
return Mage::app()->getLayout()->getBlock('header')->getWelcome();
return false;
}
}
}
来源:https://stackoverflow.com/questions/59401533/mageapp-getlayout-getblockheader-returning-false-in-magento-1-7