first commit
This commit is contained in:
15
application/models/Settings_model.php
Executable file
15
application/models/Settings_model.php
Executable file
@@ -0,0 +1,15 @@
|
||||
<?php
|
||||
|
||||
class Settings_model extends MY_Model {
|
||||
|
||||
public function __construct()
|
||||
{
|
||||
parent::__construct();
|
||||
}
|
||||
|
||||
public function findBySiteID(int $siteID) {
|
||||
return $this->db->where("siteID", $siteID)
|
||||
->get('cm_settings')
|
||||
->row();
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user