search

Home  >  Q&A  >  body text

I want to ask you a question about Smarty

Can I change the {php}{/php} pair of tags used by Smarty to run the PHP code to something else?

I think thinkphp has modified this tag, so it is written like this It’s more convenient

VO(3R(3]IB[72$ITK@GMHBN.png

(ˊo̶̶̷ᴗo̶̶̷`)(ˊo̶̶̷ᴗo̶̶̷`)2402 days ago1064

reply all(1)I'll reply

  • 亚连

    亚连2018-06-07 09:18:26

    In the TP framework, you add: because you are using a function. When using a function in a view, you must add: in front of it, otherwise it will be invalid.

    reply
    1
  • Cancelreply