Magento read/save convig variables

/ Published in: PHP
Save to your folder(s)

Copy this code and paste it in your HTML
  1. // set magento config
  2. Mage::getConfig()->saveConfig('LasooExport', $data);
  3. Mage::getConfig()->reinit();
  4. Mage::app()->reinitStores();
  6. // read magento config
  7. $v = Mage::getStoreConfig('LasooExport');

Report this snippet


RSS Icon Subscribe to comments

You need to login to post a comment.