Question

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?

Was it helpful?

Solution

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

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top