php

  1. LPH

    How to Bridge PHP and XenForo 2

    In XF2, three lines are required. Create a file named connectXenForo2.php and add the following contents. <?php /** @var $fileDir */ $fileDir = '/Absolute/Path/To/xf2'; require( $fileDir . '/src/XF.php' ); \XF::start($fileDir); $app = \XF::setupApp('XF\Pub\App'); $app->start(); Now create...
Top