require_once inside of a function : <p>for self exercise and training I am building my own CMS from the ground up. Part of this exercise is to enable custom html, css templates</p>

<p>Security wise, is it better if I open the PHP template file with require_once inside of a function to protect outside variables like the Database Handler and such?</p>

<p>Or should I make this entirely diffrent than this?</p>
