20 lines
370 B
PHP
20 lines
370 B
PHP
<?php
|
|
defined('BASEPATH') OR exit('No direct script access allowed');
|
|
|
|
require 'vendor/autoload.php';
|
|
|
|
class LogViewerController extends CI_Controller {
|
|
|
|
public function __construct() {
|
|
parent::__construct();
|
|
$this->logViewer = new \CILogViewer\CILogViewer();
|
|
//...
|
|
}
|
|
|
|
public function index()
|
|
{
|
|
echo $this->logViewer->showLogs();
|
|
return;
|
|
}
|
|
}
|