Phpbb3 Integration Error

Hi, i’m trying to integrate PHPBB3 with my yii website and i’m following this guide

I put Phpbb3Integration.php into protected/components

I modified some path and managed to get yii to load Phpbb3Integration.php but then it failed

and after some trace i found that it stops at PHPBB’s session.php

This is what phpbb’s common.php trying to include




// Include files

require($phpbb_root_path . 'includes/acm/acm_' . $acm_type . '.' . $phpEx);

require($phpbb_root_path . 'includes/cache.' . $phpEx);

require($phpbb_root_path . 'includes/template.' . $phpEx);

require($phpbb_root_path . 'includes/session.' . $phpEx);

require($phpbb_root_path . 'includes/auth.' . $phpEx);


require($phpbb_root_path . 'includes/functions.' . $phpEx);

require($phpbb_root_path . 'includes/functions_content.' . $phpEx);


require($phpbb_root_path . 'includes/constants.' . $phpEx);

require($phpbb_root_path . 'includes/db/' . $dbms . '.' . $phpEx);

require($phpbb_root_path . 'includes/utf/utf_tools.' . $phpEx);



It seems something crashing with yii.

If i try in a new php script without yii it works :unsure:

Clearly the way you have done it is not going to work - you are trying to load PHPbb into Yii - I don’t see that what you are using was designed for this.

I believe there have been a few attempts at actually integrating PHPbb with Yii, perhaps you should look for these? (Extensions?)

I cannot find any yii extension/components or even a guide to integrate PHPBB. The closest thing i found is this thread

http://www.yiiframework.com/forum/index.php/topic/29420-session-integration-with-phpbb3/

And they are doing the same thing as me.

I put these into index.php




define('IN_PHPBB', true);

$phpbb_root_path = (defined('PHPBB_ROOT_PATH')) ? PHPBB_ROOT_PATH : '../PHPBB3/';

$phpEx = substr(strrchr(__FILE__, '.'), 1);

include($phpbb_root_path . 'common.' . $phpEx);

// Start session management

$user->session_begin();

$auth->acl($user->data);

$user->setup();

$phpbb_config = $config;



It loads properly as i can see values from var_dump of the variables like $auth and etc.

But then i’m stucked at how to make these variables available inside my controller, in this case the user login controller.