今天,我尝试将Phpfox::getBlock调用到PHPfox中的模板文件中,但它不起作用。请看看哪里有问题。
想要添加php块
core.template-copyright进入档案
register.html.php我试着像这样添加
{Phpfox::getBlock('core.template-copyright')}但是它不适合我,甚至在admincp模板编辑器中文件(register.html.php)的颜色也变成了红色,这意味着代码有问题。
发布于 2014-09-26 17:04:50
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'}https://stackoverflow.com/questions/26034644
复制相似问题