在ecmall2.2.1中template.php的select(string)函数中
有以下代码:
case 'res':
$t = $this->get_para(substr($tag, 4), 0);
return '<?php echo $this->res_base . "/" . ' . "'$t[file]'" . '; ?>';
break;
$t[file]这里会有下面的错误提示
Notice: Use of undefined constant file - assumed 'file'
意思是,运用了未定义的常量file——系统把它假设为'file'