Let's say I have a new template, and I want to call the contents of the template directly from a PHP file.
For example, I have myscript.php, and I want to be able to see the contents of 'my_template' when I go to 'www.mysite.com/myscript.php
How would you go about doing that?
I tried:
PHP Code:
eval('print_output("' . fetch_template('my_template') . '");');
but Got:
Code:
Fatal error: Call to undefined function: fetch_template() in /home/.sites/22/site13/web/livexchange/vbheader.php on line 68