后端开发|php教程
smarty,php,ecshop
后端开发-php教程
在 ecshop 中的page_common.lbi中有这一样一句: {insert_scripts files=’common.js’}
在线播放视频网站源码,ueif安装ubuntu,下载的tomcat打不开,杭州爬虫python,php页面缓存流程详解,零距离seo百度推广lzw
这边的 common.js 的实际路径是怎样的??
图文发布php源码,ubuntu语言支持包,爬虫高手 需要多久,php randrom,漯河seo排名lzw
ecshop中的smarty模板的 insert_scripts 语法是怎样的?
android 背单词源码,ubuntu自动清除内存,nginx如何禁用爬虫,php 5.2.5.5,seo博客muyeseolzw
回复内容:
在 ecshop 中的page_common.lbi中有这一样一句: {insert_scripts files=’common.js’}
这边的 common.js 的实际路径是怎样的??
ecshop中的smarty模板的 insert_scripts 语法是怎样的?
应该是用的根目录的
源码里面搜索下
includes目录里面
lib_common.php 1390行
cls_template.php 1052行
<?php/** * 页面上调用的js文件 * * @access public * @param string$files * @return void */function smarty_insert_scripts($args){ static $scripts = array(); $arr = explode(,, str_replace( ,\,$args[files])); $str = \; foreach ($arr AS $val) { if (in_array($val, $scripts) == false) { $scripts[] = $val; if ($val{0} == .) {$str .= \; } else {$str .= \; } } } return $str;}?>