What are the real advantages of templating engines over just using PHP?

前端 未结 10 1645
青春惊慌失措
青春惊慌失措 2021-02-05 02:33

I develop my web applications using only PHP for the view files and I don\'t feel limited in any way, but I hear there\'s a consistent number of developers advocating \"external

10条回答
  •  闹比i
    闹比i (楼主)
    2021-02-05 03:12

    1. I use my own "template" engine, quite basic stuff, assign value to [key] and the sorts.
    2. When I first looked for a template engine I found smarty, but it had so many security problems I ended up writing what I needed myself.
    3. You ask why ? because it has many features that can make your coding faster (stuff what you didn't think of and stuff you can delegate to the template system instead of your code)
    4. The majority of coders out there have chosen a template system and when working in a team you need to keep a standard.

提交回复
热议问题