【发布时间】:2011-10-29 00:16:20
【问题描述】:
<?php
if(...) {
include("home.php");
} else if(...) {
include("about.php");
}
?>
如果我点击主页按钮,它将包含 home.php 页面,如果我点击 about 按钮,它将在页面加载时包含 about.php。我想这样,这样我就可以有一个 index.php 文件,而不是每个页面的多个文件。
有没有办法检查正在加载的 url?
【问题讨论】: