17 lines
347 B
PHP
17 lines
347 B
PHP
<?php
|
|
defined('BASEPATH') OR exit('No direct script access allowed');
|
|
|
|
class ImportModel extends CI_Model {
|
|
|
|
public function insert($data){
|
|
$insert = $this->db->insert_batch('kriteria', $data);
|
|
if($insert){
|
|
return true;
|
|
}
|
|
}
|
|
public function getData(){
|
|
$this->db->select('*');
|
|
return $this->db->get('kriteria')->result_array();
|
|
}
|
|
|
|
} |