看了thinkphp5包含文件include标签不支持动态的传参数
{include file=”$param/head”}
看了网上的几种方法,只能去修改原始方法文件了
thinkphp\library\think\Template.php文件下的parseInclude方法

if($array['append']){
if(0===strpos($array['append'],'$')){
$array['append'] = $this->get(substr($array['append'],1));
}
$file = $array['append'].$array['file'];
unset($array['append']);
}else{
$file = $array['file'];
}