aimythomas — 2012-10-24T02:35:18-04:00 — #1
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
starlion — 2012-10-24T08:49:42-04:00 — #2
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.
system — 2014-10-07T23:06:23-04:00 — #3
This topic is now closed. New replies are no longer allowed.