如何在magento的自定义模块中设置配置的示例数据

如何在magento的自定义模块中设置配置的示例数据,magento,magento-1.7,magento-1.4,magento-1.5,Magento,Magento 1.7,Magento 1.4,Magento 1.5,如何在中的自定义模块中设置配置的示例数据。 我们的守则是: $installer = $this; $installer->startSetup(); $installer->setConfigData('groupname/sectionname/fieldname' ,'Thank you for contacting us. I\'m more than happy to assist you.' . 'You can install the Premium Web

如何在中的自定义模块中设置配置的示例数据。 我们的守则是:

$installer = $this;

$installer->startSetup();

$installer->setConfigData('groupname/sectionname/fieldname'
  ,'Thank you for contacting us. I\'m more than happy to assist you.'
  . 'You can install the Premium Website Builder through your AMP'
  . '(Account Management Panel). If you need help please feel free to contact us.'
  . 'Our support department is available to assist you 24 hours a day, 7 days a week.');

$installer->endSetup(); 

如果要在核心配置数据中插入数据

只需像下面一样使用安装程序脚本

<?php

$installer = $this;

$installer->startSetup();

$installer->run("

INSERT INTO {$this->getTable('core_config_data')} (scope_id,scope,path,value) values (0,'default','groupname/sectionname/fieldname','your value');


");

$installer->endSetup();

?>

非常感谢,还有另外一种方式我做不到,因为我在magento有一个新朋友,我只是去magento的
system.xml
上浪费一些空闲时间