/* If you use the balance, get the user balance */If ((!isset ($_cfg[' use_surplus ')) | | $_cfg[' use_surplus '] = = ' 1 ') && $_session[' user_id '] > 0 && $user _info[' User_money ' > 0) { //can use balance $smarty->assign (' Allow_ Use_surplus ', 1); $smarty->assign (' Your_surplus ', $user _info[' User_money '); } This is a piece of code in my flow.php, just don't know what this $_cfg means. Online said is the system parameters, do not know what meaning. $_lang is a language pack, I know. Also know that this $_lang[' Use_surplus ' is the user balance I know, but what does this if statement mean? Words of a bit not fluent, no way Ah, EC I am small white, beg prawn support Ah!!!
Ecshop $_cfg Array is mainly to put some system parameters, and the whole station shared data, in use, ecshop often in the $globals[' _cfg ' global variable mode to handle. Ecshop's $globals[' _cfg '), mainly appearing and initializing in includes/init.php, $_cfg = Load_config (); the Load_config () function is responsible for taking out the parameters. The Ecshop function is included in the includes\lib_common.php file. function Load_config () you'll find out if you look down, and I hope it helps.
What does Ecshop $_cfg mean?