php - How can i programmatically change magento media storage? -
How can I change magenta media storage programmatically?
Hi, I want to change Magenta Media Storage Clear Script:
I'm trying to set the configuration like IM to do this:
< Pre> It converts mediastyle from file system to database, but it does not work. Can anyone help me? Am I just to change the media storage system to ah? I just do not want to synchronize files to change it. Wardius, you can do it with code below mage :: app () - & gt; GetConfig () - & gt; SetNode Mage_Core_Model_File_Storage :: XML_PATH_STORAGE_MEDIA, 1);
$ Config = new Mage_Core_Model_Config (); / * * Notice * / $ config - & gt; Save config ('default / system / media_storage_configuration / media_storage', "1", 'default', 0);
Comments
Post a Comment