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:

http://pastebin.com/mw7p52pV

This is its XML definition:

http://pastebin.com/mzcB0ejp

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

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top