在lib_insert.php中看到有調用.
----------------
$str.='<ul class="clearfix"><li class="goodsimg"><a href="'http://www.ganshuw.com'" target="_blank"><img src="'.$goods['goods_thumb'].'" alt="'.$goods['goods_name'].'" class="B_blue" /></a></li><listyle="width:115px;"><a href="http://www.jielala.com/" target="_blank" title="'.$goods['goods_name'].'"><font color=#515151>'.$goods['short_name'].'</a><br />'.$GLOBALS['_LANG']['shop_price'].'<font class="f1">'.$goods['shop_price'].'<br /></li></ul>';
------------
紅色字是我加的,防破層斷字。php
詳細地址: \includes\lib_insert.php數據庫
Insert 函數相似欲 inluce 函數,不一樣之處是 insert 所包含的內容不會被緩存,每次調用該模板都會從新執行該函數. 此函數 會在 當前頁面自動查找 insert_cart_info函數! 若是當前頁面沒有該函數的話,會自動去插件目錄中 查找 insert.cart_info.php文件中有無 smarty_insert_cart_info 函數!該函數 通常寫 一些 鏈接數據庫代碼! 實現時時 更新! 相似函數還有 register_block! 例如你在頁面上端使用一個帶有廣告條位置的模板,廣告條能夠包含任何HTML、圖象、FLASH等混合信息. 所以這裏不能使用一個靜態的連接,同時咱們也不但願該廣告條被緩存. 這就須要在 insert 函數緩存