tags:

views:

33

answers:

1

Hi guys, I created a module with an observer for the sales module with event hook ‘sales_order_shipment_save_after’ ,

My module has the following files

  1. Company/Modulename/etc/config.xml
  2. Company/Modulename/etc/system.xml
  3. Company/Modulename/Model/Observer.php

there are four fields in the modules admin configuration fields I want to get those saved data in the Observer class.

using $this->getConfigData(’password’); gives a

Call to undefined method

error Any suggestions?

A: 

Magento uses a static method on the global Mage application object to get configuration values

$config = Mage::getStoreConfig('section_name/group/field'); //value
$config = Mage::getStoreConfig('section_name/group'); //array
Alan Storm