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

WBOY
Release: 2016-06-13 12:55:52
Original
739 people have browsed it

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

or

echo $a;
?>

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

该回复于2011-04-16 10:59:12被版主删除
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
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!