how to use Smarty better with PHP?

前端 未结 11 1828
孤街浪徒
孤街浪徒 2021-01-02 17:50

I found that using Smarty with PHP, sometimes extra time will need to be used for

1) using quite different syntax than PHP itself
2) need to check small cases, b

11条回答
  •  爱一瞬间的悲伤
    2021-01-02 18:05

    Why use a template engine when you can just use your html files and inject php code where you need it? you can do this with Psttt! templating engine for php

    full source code here http://github.com/givanz/psttt

提交回复
热议问题