public function __construct()
 {
     parent::__construct();
     $this->load->database();
     $db_driver = $this->db->platform();
     $this->class_name = 'grocery_crud_model_' . $db_driver;
 }
示例#2
0
 public function __construct()
 {
     parent::__construct();
     $this->subdriver = $this->db->subdriver;
     // these drivers doesn't have CONCAT command
     if (in_array($this->subdriver, array('sqlite', 'pgsql'))) {
         $this->CAPABLE_CONCAT = FALSE;
     }
 }