문제

Can someone explain to me why we use this instruction {notification} in the code of phpfox? For example in this code we use {notification}:

{if Phpfox::isUser() && !Phpfox::getUserBy('profile_page_id')}
getFullControllerName() == 'appletjava.index'} style="float: right;position: absolute;right: 199px;top: 7px;left:auto;" {/if}>  
{notification}
{/if}

We can found other keywords also that use {} I want to know what it means.

도움이 되었습니까?

해결책

all the {something} in phpfox templates get replaced for php code at "compilation" time. To learn what all the possibilities and replacements are open the file /include/library/phpfox/template/cache.class.php

For this specific question you will find it in line 1261 and it gets replaced for:

return '<?php Phpfox::getBlock(\'core.template-notification\'); ?>';
라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top