What does Ecshop $_cfg mean?

Source: Internet
Author: User

/* 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?

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.