base model

This commit is contained in:
Olu Amey
2023-02-11 23:38:29 -05:00
parent fc9d254f4d
commit e2b66a8647
+17
View File
@@ -0,0 +1,17 @@
<?php
namespace App\Models;
use CodeIgniter\Model;
class baseModel extends Model
{
protected $db;
public $con_name = 'mermsemr';
public function __construct()
{
parent::__construct();
$this->db = \Config\Database::connect($this->con_name);
}
}