Home >Backend Development >PHP Tutorial >Smarty模板中嵌入PHP代码老是报错

Smarty模板中嵌入PHP代码老是报错

WBOY
WBOYOriginal
2016-06-13 10:57:451057browse

Smarty模板中嵌入PHP代码总是报错
求教各位Smarty高手,我在Smarty中直接嵌入PHP代码,老报错,我也将$php_handling设置为应许了,急,急,希望高手指点!

------解决方案--------------------
{php}
echo $a;
{/php}

or

echo $a;
?>

------解决方案--------------------
使用smarty3得了 直接支持PHP函数
------解决方案--------------------
报什么错
------解决方案--------------------

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