- Edited
I want to write a simple Plugin. I followed the steps from poctob/OSTEquipmentPlugin to create a Test Plugin. My Code looks like the following:
plugin.php:
<?php
return array(
'id' => 'osticket:test',
'version' => '0.1',
'name' => 'Test',
'author' => 'Lukas',
'description' => 'This is just a test',
'url' => 'NYI',
'plugin' => 'test.php:Test'
);
config.php:
<?php
class DevOpsPluginConfig extends PluginConfig{
function getOptions(){
return array();
}
function pre_save($config, &$errors){
return TRUE;
}
}
test.php:
<?php
require_once INCLUDE_DIR . 'class.plugin.php';
class Test extends Plugin{
function bootstrap(){
error_log("This is a Test", 3, "/home/luke/logging.log");
}
}
I can install and enable the Plugin, but it looks like it isnt executed, as logging.log stays empty.
Running the code by hand worked.