0

今日、PHPfox::getBlock を PHPfox のテンプレート ファイルに呼び出そうとしていますが、機能していません。どこが問題なのか見てください。

php ブロックを追加したい

core.template-copyright

ファイルに

register.html.php

私はこのように追加しようとしました

{Phpfox::getBlock('core.template-copyright')}

しかし、admincp テンプレート エディターでファイル (register.html.php) の色が赤に変わっても、コードに問題があることを意味します。

4

1 に答える 1

0
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'}
于 2014-09-26T17:04:50.133 に答える