first commit

This commit is contained in:
dev-chiefworks
2022-05-31 16:21:53 -04:00
commit f76abffdcd
5978 changed files with 1078901 additions and 0 deletions
+21
View File
@@ -0,0 +1,21 @@
<?php if (!defined('BASEPATH')) {
exit('No direct script access allowed');
}
class Country_model extends CI_Model
{
private $read_replica;
public function __construct()
{
parent::__construct();
$this->read_replica = $this->load->database('savvy_replica', TRUE);
}
public function getAll()
{
$this->read_replica->order_by('country', 'ASC');
$query = $this->read_replica->get('country');
return $query->result();
}
}