1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Compile template via PHP

Discussion in 'XenForo Development Discussions' started by allewreK, Aug 28, 2016.

  1. allewreK

    allewreK Active Member

    Hello,

    I have the following PHP variable :
    Code:
    $string = '<xen:h1>Demo</xen:h1>' ;
    I would like to compile it using XenForo's core PHP functions, so I get the following result : "<h1>Demo</h1>".
    It's exactly like XenForo's templates would do, but without using templates !

    Any ideas ?
     

Share This Page