cancel
Showing results for 
Search instead for 
Did you mean: 

use getStoreConfig in _afterSave()

SOLVED

use getStoreConfig in _afterSave()

Hi, I have some trouble with backend implementation for a field.

 

in System>Configuration I create a field, in backend I use :

 

_afterSave() , but when i try to check information in the field with

getStoreConfig("mysection/mygroup/myfield").

 

I get back the previous value and not the new one.


I've checked on google but can't find how to get the new values ...
any one have a idee or solution ?

 

thanks for your help

1 ACCEPTED SOLUTION

Accepted Solutions

Re: use getStoreConfig in _afterSave()

Find solution , value are here :

 

$this->_data['groups']['nameOfTheGroup']['fields']['NameofTheField']['value'];

View solution in original post

1 REPLY 1

Re: use getStoreConfig in _afterSave()

Find solution , value are here :

 

$this->_data['groups']['nameOfTheGroup']['fields']['NameofTheField']['value'];