自定义函数,在smarty模板中调用

Original 2019-06-01 16:31:11 160
abstract:{* 定义函数 *} {function echoname }     <p>我的姓名是: {$username}</p> {/function}     {* 调用 *} {echoname username=&#
{* 定义函数 *}
{function echoname }
    <p>我的姓名是: {$username}</p>
{/function}
    {* 调用 *}
{echoname username='chao'}


Correcting teacher:天蓬老师Correction time:2019-06-03 09:40:50
Teacher's summary:其实你想一下, 与其这样写, 还不如直接上原生函数, 你说呢?

Release Notes

Popular Entries