Best practice for HTML head in PHP

前端 未结 4 2206
不思量自难忘°
不思量自难忘° 2021-01-01 22:36

I currently have a very simple page, with some more complicated backend. I\'ve always done this the same way, but I feel it\'s not right. But I haven\'t come up with much us

4条回答
  •  梦毁少年i
    2021-01-01 23:09

    The general accepted approach in small sites is to have something like this:

    
    
    

    Header.php

    <?php echo $title; ?> - MyWebsite
    

    I think that should work fine for you, while still preserving the K.I.S.S principle.

提交回复
热议问题