ecshop模版循环遍历中自动调用函数
摘要:以下代码: 俩个foreach循环中,from中嵌套了方法,方法中使用$GLOBALS['smarty']->_var['cat']['id']获取变量; 一般都是从php代码中赋值,但是有时候直接在模版中进行运算处理,类似如上,也是很方便的。
阅读全文
posted @ 2017-09-13 12:05
posted @ 2017-09-13 12:05
posted @ 2017-05-23 11:10
posted @ 2017-04-10 17:09
posted @ 2017-03-24 14:55
posted @ 2017-01-18 14:23