Home  >  Article  >  Backend Development  >  Smarty模板中嵌入PHP代码总是报错,该怎么处理

Smarty模板中嵌入PHP代码总是报错,该怎么处理

WBOY
WBOYOriginal
2016-06-13 12:55:52628browse

Smarty模板中嵌入PHP代码总是报错
求教各位Smarty高手,我在Smarty中直接嵌入PHP代码,老报错,我也将$php_handling设置为应许了,急,急,希望高手指点! 
------解决方案--------------------
{php}
echo $a;
{/php}

or

echo $a;
?>

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

该回复于2011-04-16 10:59:12被版主删除
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