【发布时间】:2017-01-07 20:02:07
【问题描述】:
我正在修改一个脚本来添加我的导航栏。
该脚本正在使用我不熟悉的 codeigniter,因此我尝试包含我的导航栏。它可以工作,但是当您查看源代码时,导航栏位于 html 标记之外。
我的导航栏位于我网站的包含文件夹中..
class Servers extends CI_Controller {
// Servers list
public function index(){
// Header
$this->load->view('header');
// Nav
include '../includes/nav.php';
// Main
$this->load->view('servers');
// Footer
$this->load->view('footer');
}
【问题讨论】:
标签: php codeigniter