开发者

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

开发者 https://www.devze.com 2023-01-25 07:27 出处:网络
It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical andcannot be reasonably answered in its current form. For help clari
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

精彩评论

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