嗨,我想知道我應該在我的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