嗨,我想知道我应该在我的href中包含来自我的类文件夹的文件。如何包含基于导航条的PHP文件
我的网站文件夹结构
folder-class-head.php
-home.php
-setting.php
-footer.php
-index.php
这是我head.php样子。我应该填写href以便将文件包含在我的课程文件夹中?
<html>
<head></head>
<body>
<a href="">Home</a> <a href="">Setting</a>
我的index.php是正确的方法做if语句吗?
<?
include "class/head.php";
<--body start-->
if (do= home.php){
include "class/home.php";
}
if (do= setting.php){
include "class/setting.php";
}
<--body end -->
<--footer area-->
include "class/footer.php";
?>
现在我得到了另一个问题。如何添加3个页面 – aviva