• File: App_Model.php
  • Full Path: /var/www/crm_set/application/App_Model.php
  • Date Modified: 09/21/2026 4:19 AM
  • File size: 487 bytes
  • MIME-type: text/x-php
  • Charset: utf-8
<?php

defined('BASEPATH') or exit('No direct script access allowed');

/**
 * @property-read CI_DB_mysql_driver $db
 */
class App_Model extends CI_Model
{
    public function __construct()
    {
        parent::__construct();

        $this->db->reconnect();

        $timezone = get_option('default_timezone');

        if ($timezone != '') {
            date_default_timezone_set($timezone);
        }

        hooks()->do_action('model_init', $this);
    }
}