Собственно как проверить что плагин загружается?
В админке в списке плагинов есть и вкл..
Необходимость возникла написать плагин, плагинн типа Action содаю дир. в:
lib/plugins/
Называю
actionexample
В ней:
action.php
С таким кодом:
<?php
//define('DOKU_INC', '/home/mironich/wiki/');
if (!defined('DOKU_INC')) die();
if (!defined('DOKU_PLUGIN')) define('DOKU_PLUGIN', DOKU_INC . 'lib/plugins/');
require_once (DOKU_PLUGIN . 'action.php');
dbglog('!!!!!!!!!!!!!!!!!!!!!!!!');
class action_plugin_actionexample extends DokuWiki_Action_Plugin {
/**
* Return some info
*/
function getInfo() {
return array (
'author' => 'Some name',
'email' => 'foo@bar.org',
'date' => '2007-04-05',
'name' => 'Toolbar Action Plugin',
'desc' => 'Inserts a button into the toolbar',
'url' => 'http://www.example.com/plugin/toolbar',
);
}
/**
* Register the eventhandlers
*/
function register(&$controller) {
$controller->register_hook('ACTION_ACT_PREPROCESS', 'BEFORE', $this, '_lalala');
}
function _lalala(&$event, $param) {
dbglog('!!!!!!!!!!!!!!!!!!!!!!!!');
}
}
В debug.log нечего не появляется.