headerview.php
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title><?php echo $title; ?></title>
</head>
<body>
<div id="topmenu">
<ul>
<li><a href="What Should I write Here ?">Home</a></li>
<li><a href="What Should I write Here ?">About Us</a></li>
<li><a href="What Should I write Here ?">Contact Us</a></li>
</ul>
</div>
页脚视图.php
</body>
</html>
控制器/main.php
<?php if (!defined('BASEPATH')) exit('No direct script access allowed');
class main extends CI_Controller {
function index(){
$this->load->view('headerview');
$this->load->view('homeview');
$this->load->view('footerview');
}
}
?>
如何通过一个函数显示 view/about_us_view.php、view/contact.php 等页面?
-谢谢。