Just out of curiosity, how are you accomplishing the first two?

For number 3, if you have a function that you want more than one page to access, that function should be in a separate class file that can be used by any page in the website. In fact, as I'm sure you already know, ANY functions that can be shared across pages should be in a separate class file.