Assign Value to $sugar_config

Dear All,

I’m new to SuiteCRM. I’ve some issue in $sugar_config variable value assignment & assessment.

I’ve done the steps as below,

  1. Add a single line of code under config_override.php
    Add $sugar_config[‘XXX’] = ‘’;

  2. Add a single line of code under modules\Users\Authenticate.php right after global $current_user;
    // use to test $sugar_config[‘XXX’] value assignment
    $sugar_config[‘XXX’] = “Testing”;

  3. Add 2 lines of code under modules\Home\index.php
    // use to print the global variable
    echo ‘www’;
    echo $GLOBALS[‘sugar_config’][‘XXX’];

At the end the result, the ‘www’ only show under home\index.php, the global variable $sugar_config[‘XXX’] is not show.
Attached is the sample screenshot.

Appreciated any helping hand from yours, thanks.

Sorry, typo in step 3,

  1. Add 2 lines of code under modules\Home\index.php
    // use to print the global variable
    echo ‘www’;
    echo $GLOBALS[‘sugar_config’][‘XXX’];

Dear All,

I’m new to SuiteCRM. I’ve some issue in $sugar_config variable value assignment & assessment.

I’ve done the steps as below,

  1. Add a single line of code under config_override.php
    Add $sugar_config[‘XXX’] = ‘’;

  2. Add a single line of code under modules\Users\Authenticate.php right after global $current_user;
    // use to test $sugar_config value assignment
    $sugar_config[‘XXX’] = “Testing”;

  3. Add 2 lines of code under modules\Home\index.php
    // use to print the global variable
    echo ‘www’;
    echo $GLOBALS[‘sugar_config’][‘XXX’];

At the end the result, the ‘www’ only show under home\index.php, the global variable $sugar_config is not show.
Attached is the sample screenshot.

Appreciated any helping hand from yours, thanks.

opps, unable type “[” ?

Dear All,

I’m new to SuiteCRM. I’ve some issue in $sugar_config variable value assignment & assessment.

I’ve done the steps as below,

  1. Add a single line of code under config_override.php
    Add $sugar_config"[‘XXX’]" = ‘’;

  2. Add a single line of code under modules\Users\Authenticate.php right after global $current_user;
    // use to test $sugar_config value assignment
    $sugar_config"[‘XXX’]" = “Testing”;

  3. Add 2 lines of code under modules\Home\index.php
    // use to print the global variable
    echo ‘www’;
    echo $GLOBALS"[‘sugar_config’][‘XXX’]";

At the end the result, the ‘www’ only show under home\index.php, the global variable $sugar_config is not show.
Attached is the sample screenshot.

Appreciated any helping hand from yours, thanks.

config name is disappear after submitted
config name is XXX under step 1.
assign value to config XXX under step 2
echo config XXX -> $GLOBALS ‘sugar_config’ ‘XXX’; under step 3.