如何在每次请求时在Magento中记录所有xml布局更新
Posted
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了如何在每次请求时在Magento中记录所有xml布局更新相关的知识,希望对你有一定的参考价值。
Snippet for logging down all of the layout updates loaded on each request in Magento.
//Full path to the log file: //Layout model: Mage_Core_Model_Layout $layout = Mage::getSingleton('core/layout'); //Generate our xml with Mage_Core_Layout_Update model and save it in a file $xml = '<'.'?xml version="1.0"?'.'>';
以上是关于如何在每次请求时在Magento中记录所有xml布局更新的主要内容,如果未能解决你的问题,请参考以下文章