I have trouble importing my own plugin. I have tried numerous methods (e.g. JLoader and differnt variations of names to be imported), all of them failed.
This is the plugin's php content:
This is its XML definition:
This is how I call it:
$res = JPluginHelper::importPlugin('Mycategory');
var_dump($res);
$results = $dispatcher->trigger( 'testMaxSizer', '');
var_dump($results);
Both var_dumps return either NULL or false.
What am I doing wrong?
There's nothing wrong with your code, so be sure you have properly installed the plugin and enabled it, else the trigger won't work