سؤال

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