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.