【发布时间】:2016-03-28 14:42:47
【问题描述】:
谁能告诉我为什么在phpfox\module\video\template\default\block\entry.html.php文件中调用{plugin call='video.template_block_entry_1'}?
【问题讨论】:
谁能告诉我为什么在phpfox\module\video\template\default\block\entry.html.php文件中调用{plugin call='video.template_block_entry_1'}?
【问题讨论】:
这是一个钩子,它允许其他模块可以将他们的代码插入到这个文件中。 例如,在其他模块中,我们可以在 module/[module_name]/include/plugin/ 中创建一个新的文件名:video.template_block_entry_1.php 包含:
<?php echo "Hello world";
更多文本 hello world 将包含在 entry.html.php 中
【讨论】: