In ecshop, $ GLOBALS ['smarty ']-> In _ var, where does _ var define _ var instead of others? -Php Tutorial

Source: Internet
Author: User
In ecshop, where is the _ var defined in $ GLOBALS [smarty]-& gt; _ var? why is it _ var instead of others? For example, in the foreach, $ GLOBALS ['smarty ']-> _ var ['cat'] ['id']

$ Cat_info = get_cat_info_ex ($ GLOBALS ['smarty ']-> _ var ['cat'] ['id']);
// Var_dump ($ cat_info );
?>


$ GLOBALS ['smarty ']-> _ var ['cat'] ['id']

_ Where is var defined, the element ['cat'] ['id'] after it is obtained from item = cat in foreach or from cached files?

Similarly
$ GLOBALS ['smarty ']-> _ var ['Nav'] ['CID']
$ GLOBALS ['smarty ']-> _ var ['Nav'] ['URL']

$ GLOBALS ['smarty ']-> _ var ['goods _ cat'] ['id']

$ GLOBALS ['smarty ']-> _ var ['Category']

$ GLOBALS ['smarty ']-> _ var ['buy _ goods'] ['last _ price_no_format ']
...


Reply to discussion (solution)

Items in foreach = items taken by cat

Includes \ cls_template.php: find the function push_vars and write it in it.

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.