How to pass arguments to an included file?

前端 未结 9 1965
無奈伤痛
無奈伤痛 2020-12-14 05:53

I\'m trying to make the whole section its own include file. One drawback is the title and description and keyword will be the same; I can\'t figure

9条回答
  •  Happy的楠姐
    2020-12-14 06:20

    If you include a file it is just like inserting that code into the parent file. You could simply do this:

    
    

    and then in the header.php

    
    

    I used the isset() method to verify that it has a value already and is instantiated.

提交回复
热议问题