Adds a helper wrapper to "logs" plugin.
parent
521d8eafab
commit
d0101925de
|
|
@ -1,7 +1,12 @@
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
// Logs plugin bootstrap
|
// Logs plugin bootstrap
|
||||||
// (here we add any plugin autoloader, if needed)
|
if (!defined('PLUGIN_LOGS_PATH')) {
|
||||||
|
define('PLUGIN_LOGS_PATH', __DIR__ . '/');
|
||||||
|
}
|
||||||
|
|
||||||
|
// We add the plugin helpers wrapper
|
||||||
|
require_once PLUGIN_LOGS_PATH . 'helpers.php';
|
||||||
|
|
||||||
// List here all the controllers in "/controllers/" that we need as pages
|
// List here all the controllers in "/controllers/" that we need as pages
|
||||||
$GLOBALS['plugin_controllers']['logs'] = [
|
$GLOBALS['plugin_controllers']['logs'] = [
|
||||||
|
|
|
||||||
|
|
@ -0,0 +1,9 @@
|
||||||
|
<?php
|
||||||
|
/**
|
||||||
|
* Logs plugin helper aggregator.
|
||||||
|
*
|
||||||
|
* Bootstrap includes this file once so that all helper modules under helpers/
|
||||||
|
* are loaded consistently with other plugins.
|
||||||
|
*/
|
||||||
|
|
||||||
|
require_once __DIR__ . '/helpers/logs_view_helper.php';
|
||||||
Loading…
Reference in New Issue