|
![](static/image/common/ico_lz.png)
楼主 |
发表于 2014-7-14 11:55:19
|
显示全部楼层
按手册写的代码如下: public function index()
{
$data['news'] = $this->news_model->get_news();
$data['title'] = 'News archive';
$this->load->view('templates/header', $data);
$this->load->view('news/index', $data);
$this->load->view('templates/footer');
}
|
|