在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 函数缓存