PHP code example of duongnhathao / codeigniter-log-viewer
1. Go to this page and download the library: Download duongnhathao/codeigniter-log-viewer library. Choose the download type require.
2. Extract the ZIP file and open the index.php.
3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
duongnhathao / codeigniter-log-viewer example snippets
private $logViewer;
public function __construct() {
parent::__construct();
$this->logViewer = new \CILogViewer\CILogViewer();
//...
}
public function index() {
echo $this->logViewer->showLogs();
return;
}