* Fix error the global $dao variable is replaced with a new instance when call function loadModel.
This commit is contained in:
@@ -309,6 +309,8 @@ class baseModel
|
||||
public function loadDAO()
|
||||
{
|
||||
global $config, $dao;
|
||||
if(is_object($dao)) return $this->dao = $dao;
|
||||
|
||||
$driver = $config->db->driver;
|
||||
|
||||
if(!class_exists($driver))
|
||||
|
||||
Reference in New Issue
Block a user