我在文件夾中有一個頁眉設計模板:/template/header.php
。在header.php文件中,我使用Bootstrap。如何在Bootstrap中包含文件* .php?
然後,我創建的文件夾中的另一個文件:/karyawan/karyawan_form.php
在我karyawan_form.php INCLUDE文件header.php文件
所以karyawan_form.php腳本文件是這樣的:
<?php
include_once '../template/header.php';
?>
<div class="container">
Welcome to my website!
</div>
然後它不在本地鏈接上運行:
localhost/belaja rajax/karyawan/karyawan_form.php
但爲什麼院子看起來像普通的PHP視圖;像沒有Bootstrap?
:d,這不是工作的人 – itoru 2013-02-24 07:33:26