Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/joomla/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Plugins 带有帮助文件的Joomla插件_Plugins_Joomla - Fatal编程技术网

Plugins 带有帮助文件的Joomla插件

Plugins 带有帮助文件的Joomla插件,plugins,joomla,Plugins,Joomla,有没有一种传统的方法来制作Joomla插件的帮助文件?比如类名(helper或plgnamehlper)以及调用它的方式 class Helper { public static function test() { // some code } public static function anotherTest() { // some code } } 按照惯例,助手文件是用于模块的,而不是用于插件的。但是,如果插件更改了

有没有一种传统的方法来制作Joomla插件的帮助文件?比如类名(helper或plgnamehlper)以及调用它的方式

class Helper
{
    public static function test() 
    {
    // some code
    }

    public static function anotherTest() 
    {
    // some code
    }
}

按照惯例,助手文件是用于模块的,而不是用于插件的。但是,如果插件更改了HTML页面,那么制作一个模板是一个好主意

没有传统的方法为Joomla插件创建帮助文件,但您可以创建Joomla!库,它可以帮助您通过注册前缀自动加载类


我建议您阅读链接。

您可以关闭此问题,因为它是在Joomla Stack Exchange上回答的;)