first commit
This commit is contained in:
@@ -0,0 +1,21 @@
|
||||
<?php
|
||||
|
||||
class Country_model extends CI_Model {
|
||||
|
||||
function __construct() {
|
||||
|
||||
}
|
||||
|
||||
public function loadCountry($data) {
|
||||
$q = $this
|
||||
->db
|
||||
->where('status', $data['status'])
|
||||
->order_by('country', 'ASC')
|
||||
->get('country');
|
||||
|
||||
// $this->db->order_by('name', 'ASC');
|
||||
|
||||
return $q->result();
|
||||
}
|
||||
//$this->db->order_by('title', 'DESC');
|
||||
}
|
||||
Reference in New Issue
Block a user