What I would like to know, is there a best practice way to do this? In my search I have come across countless methods, but none seems to stand out, either in my eyes or the eyes of the php community, as being the ideal way to do things.
Two common variations seem to be:
- Have a single index.php page which processes $_GET variables. In this situation, the user visits the template file and the template pulls in the unique content. Users access the site by typing in URLs such as: http://www.domain.com/index.php?p=somepage.
- Have many unique content pages which include a header/footer or an entire template. In this situation, the user visits the unique content page and the unique content page pulls in the template. Users access the site by typing in URLs such as: http://www.domain.com/somepage.php