ecmall template.php——select(string) $t[file] 的錯誤信息

在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'

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章