Include Documents, Good Idea?
Moderator: General Moderators
Include Documents, Good Idea?
I usually include documents in my code, such as header and footer etc. This makes it easier to make changes to these elements without having to go through all of the documents and change them individually. I was wondering if it's a good idea for me to just create loads of small documents in php and just link them all together with the include function thingy. This was, my code will look neater, and it'll be completely structured. Is this what a lot of the pros do?
Re: Include Documents, Good Idea?
That is exactly how I code. Now I don't do extremely small include files, but for major things (header, footer, individual pages), that is definitely the way to go for clean/structured code.