ecshop 修改模板可输出php代码

1、找到includes 文件夹下的 cls_template.php function fetch_str函数

2、只留下以下代码

 1 function fetch_str($source)
 2 
 3         {
 4 
 5             if (!defined('ECS_ADMIN'))
 6 
 7             {
 8 
 9                 $source = $this->smarty_prefilter_preCompile($source);
10 
11             }
12 
13              return preg_replace("/{([^\}\{\n]*)}/e", "\$this->select('\\1');", $source);
14 
15         }

 

posted on 2013-07-10 16:37  unifyyeteng  阅读(266)  评论(0编辑  收藏  举报

导航