-
-
Save arunoda/649ab8636ea95314f505 to your computer and use it in GitHub Desktop.
Codeigniter - Extend a library
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
class Hello extends MY_Controller { | |
public function index() { | |
$this->load->library('log'); | |
//$this->log->write_log("INFO", "this is logging"); | |
$this->log->info("this is logging"); | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
class My_Log extends CI_Log { | |
public function info($message) { | |
parent::write_log("INFO", $message); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment