|
现在有一个页面上有两个列表,代码如下:
function index()
{
$condition = array();
$summary = $this->cdr_summary_model->summary_by_date(10,0,$condition,$total);
$this->table->set_heading($this->lang->line('summary_list_title'));
$data['summary'] = $summary;
$user_list = $this->user_model->get_user(10,0,$condition,$total);
$this->table->set_heading($this->lang->line('user_title'));
$data['user_list'] = $user_list;
$this->load->view('home_page',$data);
}
但结果,显示的时候两个列表都显示的内容一样的,都是第二部分的内容,这个如何处理?
能定义两个table对象吗? |
|