문제

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