Forum Moderators: coopster
In directory "xyz" I run a php script and includes are called using %%include_1%% in the templates.
If I want to use the same include in index.php at the root am I best off using the following?
<?php
require_once('xyz/include_1.php');
?>
Freq---
So I would call your example once in index.php at the root and then I could include "include_1" anywhere site wide? or does your example need to be placed as a separate php file (for example "sitewide.php") in the root which in turn calls on "include_1" from the full directory path specified?
Freq---
I may have confused the issue as I don't really know how this is set
%%include_1%%
if everything else is working, as I said, then just try the require line you posted and forget what I said.