2014-09-25 4 views
0

오늘 PHPfox에서는 템플릿 파일에 Phpfox :: getBlock을 호출하려고하지만 작동하지 않습니다. 어디서 문제가 있는지보십시오. PHPFOX 템플릿 파일에 Phpfox :: getBlock 호출하기

(나는 그 날에도 파일을 작동하지 않는이

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

그러나 같은 추가하려고

register.html.php 

파일에 PHP를 차단

core.template-copyright 

를 추가 할 register.html.php) admincp 템플릿 편집기에서 빨간색이 빨간색으로 바뀌면 코드에 문제가 있다는 뜻입니다.

답변

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'} 
관련 문제