Code: Select all
define('IN_PHPBB', true);
$phpbb_root_path = '../forum/';
$phpEx = substr(strrchr(__FILE__, '.'), 1);
include($phpbb_root_path . 'common.' . $phpEx);
// Start session management
$user->session_begin();
$auth->acl($user->data);
$user->setup();
From this i assume that PHPBB is setting up a Twig enviroment that appears to be conflicting with the one i have in my own file. This also causes my Twig templates not to load, if the above code is removed my Twig templates load without issue.[phpBB Debug] PHP Warning: in file [ROOT]/phpbb/template/twig/loader.php on line 176: Declaration of phpbb/template/twig/loader::findTemplate($name) should be compatible with Twig_Loader_Filesystem::findTemplate($name, $throw = true)
So my question is this, is there a way to use the authentication side of PHPBB for my website without it impacting the Twig settings for the rest of the site?