The Question:
How do you include a page, who’s location is based on a variable?
The Goal:
Set Variables (theme location) in a settings.php file…
Root index, should reflect the index depending on the settings.php variable
Thanks For The Help Guys!
-Andrew
<!----//settings.php//---->
<?php
$siteurl = "http://www.example.com/"
$themefolder = "theme/";
$theme = "theme1/"
?>
<!----//index.php//---->
<?php include("settings.php"); ?>
//how do you $E = echo settings variables?
<?php include(" $E index.php"); ?>
Any ideas for a work around?
I want to achieve…
include(” $E index.php”); ?> = http://www.example.com/theme/theme1/index.php
So you basically want to include http://www.website.com/theme/theme1/index.php?
That is easy:
I think that it would be easier to think about this if we knew what do you want to achieve. Include different pages according to the url?