Welcome Guest, Not a member yet? Register   Sign In
[3.1.4 modification] modify calendar library, add extra column before calendar
#3

(This post was last modified: 05-21-2017, 06:29 AM by ivantcholakov. Edit Reason: directory clarification )

A library under a different name could be an option to be considered:

Code:
<?php defined('BASEPATH') OR exit('No direct script access allowed');

// application/libraries/Calendar_extra.php

if (!class_exists('CI_Calendar', false)) {
    get_instance()->load->library('calendar');
}

class Calendar_extra extends CI_Calendar {

    public function __construct($config = array()) {

        // If a configuration file is to be used,
        // its name would be calendar_extra.php

        parent::__construct($config);
    }

    // Put your customizations here.
}

Code:
// A Quick Test
        $this->load->library('calendar_extra');
        echo $this->calendar_extra->generate();
Reply


Messages In This Thread
RE: modify calendar library - by skunkbad - 05-20-2017, 03:03 PM
RE: modify calendar library - by ivantcholakov - 05-21-2017, 06:27 AM
RE: modify calendar library - by eagle00789 - 05-22-2017, 12:46 PM



Theme © iAndrew 2016 - Forum software by © MyBB