初学SMARTY ,下面的语句请高手指点一下.

来源:百度知道 编辑:UC知道 时间:2024/05/24 06:15:54
{--mc_getcontent type="company" id="43" items="f_id, f_content" varname="info"--}
{--$info.f_content|cnsubstr:300--}
mc_getcontent 什么意思
type tems varname又分别代表什么啊
要是这是个函数又是在哪定义的啊

这是smarty的插件
inc/classes/smarty/plugins/function.mc_getcontent.php
打开此文件看看就知道了
mc_getcontent是插件名
type tems varname这些是插件的参数

你用的这个系统里面有一些bug的,现在官方已经停止开发了

smarty不懂,但是从英文意思来猜:
getcontent是个获取某某内容的函数
type是类型
items是具体的要获取内容
varname是将该内容存入的变量的名称