サンプルがあります:
plugins
--shopping
----jcomments
--------jcomment.php
--------jcomment.xml
plugins/shopping/jcomments/jcomment.php で
class plgShoppingJcomments extends JPlugin
function plgShoppingJcomments(&$subject, $config){
parent::__construct($subject, $config);
}
function onBeforeDisplayProductView(&$view) {
die('test');
}
}
そして、コンポーネント com_shopping の view.html.php を呼び出します
JPluginHelper::importPlugin('shopping');
$dispatcher =& JDispatcher::getInstance();
$dispatcher->trigger( 'onBeforeDisplayProductView', $view);
しかし、コードを実行すると、このプラグインは結果を表示しません (die("test"))、このプラグインを修正する方法