Separating code from layout in template

后端 未结 4 1421
渐次进展
渐次进展 2021-02-20 08:17

I have an app built around an MVC pattern. The view is php but mostly html with minimal php code embedded, stuff like this -

Welcome 

        
4条回答
  •  情话喂你
    2021-02-20 08:54

    If I may add a suggestion, you can convert all PHP output to DOM/XML and feed it to an XSLT processor where the presentation, however complex, is more consistent, because XSLT and XHTML are both based on XML. You do get presentation separated from content both in terms of physical location and technology used to deliver it.

提交回复
热议问题