Domanda

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?

È stato utile?

Soluzione

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

Autorizzato sotto: CC-BY-SA insieme a attribuzione
Non affiliato a StackOverflow
scroll top