function gallery data array data title Users data selected gallery thi

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
function gallery(){
$data = array();
$data['title'] = 'Users';
$data['selected'] = 'gallery';
$this->top($data);
$this->load->model('gallery_model');
$this->load->model('users_model');
$data2['list'] = $this->gallery_model->get_list();
foreach ($data2['list'] as $val){
$login=$this->users_model->get_login($val['id']);
$data2['list'][$val['id']]['owner']=$login;
}
$this->load->view('admin/gallery_list', $data2);
$this->bottom();
}