CI_Calendar::__construct PHP Method

__construct() public method

Loads the calendar language file and sets the default time reference.
public __construct ( array $config = [] ) : void
$config array Calendar options
return void
    public function __construct($config = array())
    {
        $this->CI =& get_instance();
        $this->CI->lang->load('calendar');
        empty($config) or $this->initialize($config);
        log_message('info', 'Calendar Class Initialized');
    }

Usage Example

Example #1
0
 public function __construct()
 {
     parent::__construct();
     $this->ci =& get_instance();
     $this->ci->load->model('calendar/calendar_m');
 }
All Usage Examples Of CI_Calendar::__construct