Problem Statement:-
Some time we want to ave a new parameter in config file.
Solution:-
for this we have use the Configurator file that provide a function that save value in the sugarcrm config file.
Use this Code:-
require_once('modules/Configurator/Configurator.php');
$cfg = new Configurator();
$cfg->config["authorizenet_settings"] = array(
'appName' => $_REQUEST["appName"],
'transactionKey' => $_REQUEST["transactionKey"],
);
$cfg->saveConfig();
Some time we want to ave a new parameter in config file.
Solution:-
for this we have use the Configurator file that provide a function that save value in the sugarcrm config file.
Use this Code:-
require_once('modules/Configurator/Configurator.php');
$cfg = new Configurator();
$cfg->config["authorizenet_settings"] = array(
'appName' => $_REQUEST["appName"],
'transactionKey' => $_REQUEST["transactionKey"],
);
$cfg->saveConfig();
No comments:
Post a Comment