PHP code example of iqtool / ci3-log-viewer
1. Go to this page and download the library: Download iqtool/ci3-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/ */
iqtool / ci3-log-viewer example snippets
$config['composer_autoload'] = TRUE;
$autoload['libraries'] = array('Ci3LogViewer');
$route['log-viewer'] = 'LogViewer/index';
$route['log-viewer/api/files'] = 'LogViewer/get_files';
$route['log-viewer/api/files/(:any)/download'] = 'LogViewer/download_file/$1';
$route['log-viewer/api/files/(:any)'] = 'LogViewer/delete_file/$1';