ecshop 下面php代码如何 转换到ecshop模版调用输出

2025-03-04 20:04:55
推荐回答(2个)
回答1:

你可以直接在php文件内操作哦,比如你想在index.dwt里调用,那你可以在index.php 把你写的函数加进去然后 再index.php 里加入

$content=getline($file); //$file我不大清楚你传的是哪里的值

$smarty->assign('res', $content);

index.dwt里 直接{$res}就可以了

回答2:

鬼知道