在Phpfox中的模板文件中调用Phpfox::getBlock
今天,我尝试将Phpfox::getBlock调用到Phpfox中的模板文件中,但它不起作用。请看看哪里出了问题 要添加一个php块吗在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
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'}