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

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

WBOY
Release: 2016-06-13 13:05:49
Original
880 people have browsed it

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

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

or

echo $a;
?>

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

Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template