开发者

How can define variable inside smarty template file? [closed]

It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help c开发者_如何学编程enter. Closed 12 years ago.

How can i define variable not in PHP but in .TPL? (smarty template file)


{assign var=foo value=Test}

or some more complicated example:

{assign var=foo value={cycle values="first,second"}}


is assign what you are looking for?

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜