22 lines
446 B
PHP
22 lines
446 B
PHP
<?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');
|
|
}
|