Hi there,
here's my code, just want to display the visitor's menu somewhere else (external app):
// fileDir is correct, don't get confused
$fileDir = "../";
require $fileDir . '/src/XF.php';
XF::start($fileDir);
$app = XF::setupApp('XF\Pub\App');
$app->start()...