Home >Backend Development >PHP Tutorial >tpl文件里写PHP代码不识别怎么办

tpl文件里写PHP代码不识别怎么办

WBOY
WBOYOriginal
2016-06-23 14:05:191354browse

tpl里写PHP代码不识别怎么办。。tpl里写PHP代码不识别怎么办。。


回复讨论(解决方案)

不明白意思,smarty模板的么?

smarty模板的需要替换标签的

恩是smarty  不懂 怎么才能写php

{php}
your php code
{/php}

看你Smarty里定义的左右定界符是什么了,如果定界符为
则输出变量直接就可以 ...

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn