Okay, I have this:
gerardnico
<?php
class action_plugin_gitlabtrigger_handlepost extends DokuWiki_Action_Plugin
{
/** @inheritDoc */
public function register(Doku_Event_Handler $controller)
{
$controller->register_hook('COMMON_SAVE_WIKIPAGE', 'BEFORE', $this, 'trigger_pipeline');
}
public function trigger_pipeline(Doku_Event $event)
{
echo "bla";
}
}
This is exact copy/paste from file.
root@notmyhostname:/opt/doku/staging/lib/plugins/gitlabtrigger# pwd
/opt/doku/staging/lib/plugins/gitlabtrigger
root@notmyhostname:/opt/doku/staging/lib/plugins/gitlabtrigger# ls -la
total 40
drwxr-xr-x 2 www-data www-data 4096 Jan 14 17:21 .
drwxr-xr-x 18 www-data www-data 4096 Jan 13 22:58 ..
-rw-rw-rw- 1 www-data www-data 20480 Jan 12 14:44 LICENSE
-rw-rw-rw- 1 www-data www-data 952 Jan 11 22:43 README
-rw-r--r-- 1 www-data www-data 380 Jan 14 17:21 handlepost.php
-rw-rw-rw- 1 www-data www-data 212 Jan 11 22:43 plugin.info.txt
Blank screen. I will work on setting up local dev environment now with the debugger you mentioned though for nginx
I havent' used apache
in several years. Please if you see anything further let me know. Thank you!