예제 #1
0
 function index($offset = 0)
 {
     $data['prints'] = $this->Print_model->show($admin = true);
     default_or_image($data['prints']);
     $config['base_url'] = site_url('prints');
     $config['total_rows'] = count($data['prints']);
     $config['per_page'] = $this->per_page;
     $config['uri_segment'] = 2;
     $data["prints"] = array_slice($data["prints"], $offset, $config['per_page']);
     $this->pagination->initialize($config);
     $data['pagination'] = $this->pagination->create_links();
     $this->layout->view('prints/index', $data);
 }
예제 #2
0
 function index()
 {
     $data['prints'] = $this->Print_model->show($admin = true);
     default_or_image($data['prints']);
     $this->layout->view('admin/prints/index', $data);
 }