public function update($agent) { $this->load->model('update_model'); $model = new Update_model(); $data['list'] = $model->getGereniddata(); print_r($data); //$data['list'] = array_combine($model->getGerendata(), $model->getGereniddata()); //print_r($data['list']); //foreach($data['list'] as $keys=>$values) //{ // $arr_n = count($data['list']); //} //echo $arr_n; //$this->load->view('custom_view',$data); }
public function offline() { $data['title'] = "Offline Management"; $data['content_view'] = "Admin/offline_management"; $data['banner_text'] = "Offline Management"; $data['system_updates'] = Update_model::get_system_files(1); $data['system_setup'] = Update_model::get_system_files(2); $data['offline_facilities'] = Facilities::get_offline_facilities(null, null); // echo "<pre>";print_r($data);die; $this->load->view("shared_files/template/dashboard_v", $data); }