Weather by You!
Templates and Projects support => Php templates => Topic started by: CurtisZM on November 25, 2016, 12:11:56 AM
-
To All,
What would I need to do to create a central folder that a couple of the templates could reference to get the information sent from my local PC Cumulus instead of FTP'ing to each template folder?
Example: If I wanted to use weather_blues2 and weather_sunset. What would I need to do in the php's to reference a folder that had the wt_data_inc.php, trends, realtime files?
Thank you.
-
Hi Curtis,
You could have only one set for your data files, but you need to modify all pages.
As templates are using relative paths, data files are intended to be in current folder.
As example: include('wt_data_inc.php');
You have to change it for some thing like: include('../data/wt_data_inc.php');
Regards,
Jacques