【问题标题】:Using plugin in PHPfox在 PHPfox 中使用插件
【发布时间】:2016-03-28 14:42:47
【问题描述】:

谁能告诉我为什么在phpfox\module\video\template\default\block\entry.html.php文件中调用{plugin call='video.template_block_entry_1'}

【问题讨论】:

    标签: plugins phpfox


    【解决方案1】:

    这是一个钩子,它允许其他模块可以将他们的代码插入到这个文件中。 例如,在其他模块中,我们可以在 module/[module_name]/include/plugin/ 中创建一个新的文件名:video.template_block_entry_1.php 包含:

    <?php echo "Hello world";
    

    更多文本 hello world 将包含在 entry.html.php 中

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2012-03-18
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2016-03-11
      • 2023-04-09
      • 2012-12-02
      相关资源
      最近更新 更多