Calling template at once

Hello Again,

I am just wanted to know if we can call the Template using “require_once” at PHP?

Any views around happy to discuss.

Thanks in Advance

the ‘once’ in require_once (and include_once) does not refer to immediacy, but rather non-repeatability.

If you try to include a file twice after using a _once() function, it simply will not fetch the file again.

The file in question is immediately called when you issue the function; however if you’re trying to manipulate the contents of a template file, you may be wanting to file_get_contents instead of include/require.