I'm hopefully closing in on finalising my plugin!
I've got a syntax class, syntax_plugin_<plugin>
which extends a base class Syntax
. That's all working fine when I use the file syntax.php
at the root of my plugin.
However, I want to allow users to choose between block and inline modes, so I have two syntaxes that must be different classes (they reply differently to getPType()
). If I make a syntax
directory and copy the syntax.php
file into it, renaming the file block.php
, then add _block
to the class name, suddenly it all stops working. The base class is loaded from a namespace dokuwiki\plugin\<plugin>\meta
, and VSCode can find it in both cases.
I've used var_dump in the methods to see what's happening, and my handle()
and render()
methods aren't firing at all, although they do work fine when found in the root syntax.php
. Nothing in the Apache error logs. Anyone got any ideas what else to check?
Thanks,
Iain.