magento change xml

piaoling  2012-09-06 17:02:13
       $node = Mage::getConfig()->getNode('maxcache/cache/type');

        Zend_Debug::dump($node);


        $parentNode = Mage::getConfig()->getNode('maxcache/cache');

        Zend_Debug::dump($parentNode);


//change child named 'type' value to be test

        $parentNode->setNode('type','test',true);

        Zend_Debug::dump($parentNode);


        $node2 = Mage::getConfig()->getNode('maxcache/cache/type');
        Zend_Debug::dump($node2);
类别 :  magento(258)  |  浏览(4004)  |  评论(0)
发表评论(评论将通过邮件发给作者):

Email: