常用方法
常用方法
常用方法
常用方法
/** * @param Mage_Core_Block_Abstract $block */ public function delayPrepareLayout($block, $sortOrder = 0) { if ($this->_delayedLayoutIsBeingProcessed || Mage::registry('m_page_is_being_rendered')) { $block->delayedPrepareLayout(); } else { $this->_delayPrepareLayoutBlocks[$block->getNameInLayout()] = compact('block', 'sortOrder'); } }