How to Bridge PHP and XenForo 2

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:
<?php

/** @var  $fileDir */
$fileDir = '/Absolute/Path/To/xf2';

require( $fileDir . '/src/XF.php' );
\XF::start($fileDir);

$app =...
You do not have permission to view the full content of this resource. Log in or register now.
Author
LPH
Views
2,433
First release
Last update
Rating
0.00 star(s) 0 ratings

More resources from LPH

Top