thinkphp模板中无法给自定义函数传多个参数

1.模板的用法

{:function(param1,param2,param3...)}

2.实例

  <td>{:getChannelInfo($adminId,$v['sale_id'])}</td>

3.函数

function getChannelInfo($a,$b){
    return $a.",".$b;
}

 

posted @ 2017-05-15 16:45  侠岚之弋痕夕  阅读(1121)  评论(0)    收藏  举报
Where is the starting point, we don't have a choice, but the destination where we can pursue!