Results 1 to 2 of 2
Thread: Calling template at once
Oct 24, 2012, 00:35 #1
Calling template at once
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
Oct 24, 2012, 06:49 #2
- Join Date
- Feb 2006
- Atlanta, GA, USA
- 73 Post(s)
- 0 Thread(s)
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.Never grow up. The instant you do, you lose all ability to imagine great things, for fear of reality crashing in.