DOUBT: Layout split [closed]

2

I'm new to development and I'm developing a project for learning.
Here is a question I have about the division of the layout.
What is the best practice?
Have separate header / sidebar footer content parts in different files and do include / require
Or in the index leave these parts (header, sidebar, footer) and give include / require in the content? Are there differences in performance?
When should I start worrying about performance? Home Thank you all for sharing the knowledge! :]

    
asked by anonymous 20.01.2017 / 16:39

1 answer

1

As I would, I would separate the header , sidebar , footer , and in a separate file my content, thus saving code, in relation to performance I believe there is not much difference, the bigger question would be even organization.

  • Pages
    • index
    • contact
  • Includes
    • footer
    • header
    • sidebar
20.01.2017 / 16:51