Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/html/84.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
在Phpfox中的模板文件中调用Phpfox::getBlock_Php_Html_Phpfox - Fatal编程技术网

在Phpfox中的模板文件中调用Phpfox::getBlock

在Phpfox中的模板文件中调用Phpfox::getBlock,php,html,phpfox,Php,Html,Phpfox,今天,我尝试将Phpfox::getBlock调用到Phpfox中的模板文件中,但它不起作用。请看看哪里出了问题 要添加一个php块吗 core.template-copyright 归档 register.html.php 我试着这样加上 {Phpfox::getBlock('core.template-copyright')} 但是它对我不起作用,甚至在admincp模板编辑器中文件register.html.php的颜色变为红色,这意味着代码中有错误 you can call php

今天,我尝试将Phpfox::getBlock调用到Phpfox中的模板文件中,但它不起作用。请看看哪里出了问题

要添加一个php块吗

core.template-copyright
归档

register.html.php
我试着这样加上

{Phpfox::getBlock('core.template-copyright')}
但是它对我不起作用,甚至在admincp模板编辑器中文件register.html.php的颜色变为红色,这意味着代码中有错误

you can call phpfox block in template file by using following syntax

{module name='core.template-copyright'}

{module name='module-name.block-name'}

or if you want to add only html file in to template then you should write

{template file='user.block.register.step2'}