你如何包含一個頁面,誰的位置是基於一個變量?
目標:
設置變量(主題定位)在settings.php配置文件...
根指數,應該反映取決於settings.php配置變量指數
謝謝你的幫助!
-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"); ?>
對周圍的工作任何想法?
我想實現... 包括( 「$ E的index.php」); ?> = http://www.example.com/theme/theme1/index.php
也許你需要更清楚一點 – emaillenin 2012-01-31 12:05:30
你應該澄清你的問題的方式。 – 2012-01-31 12:09:07
請使用[** example.com **](http://www.example.com)作爲示例域,因爲這就是它的用途。 – 2012-01-31 13:19:13