function abc($id) { $this->load->model('emp_model'); $data['rows']=$this->emp_model->info1($id); $this->load->view('employee_personal_view',$data); }
function info1($id) { $this->load->database(); $query = $this->db->get_where('employee',array('id'=>$id)); return $query->row_array(); }