XF 2.1 Help on a page

Hello,

I want to know if it's possible to include a php file or php syntax on a page like that:

Code:
<xf:if is="{{ $xf.visitor.isMemberOf(5) }}">

include 'mypage.php';
    
<xf:else />
    Sorry But you have not buy this product yet
</xf:if>
Thank in advance
 
You can use the callback tag to call a static method that can then include and echo your file
 
Top Bottom