Yii Framework Forum: Phpbb3 Integration Error - Yii Framework Forum

Jump to content

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

Phpbb3 Integration Error Rate Topic: -----

#1 User is offline   freshuser 

  • Junior Member
  • Pip
  • Yii
  • Group: Members
  • Posts: 52
  • Joined: 19-June 12

Posted 04 January 2013 - 10:18 AM

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

http://www.barattalo...in-integration/

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:
0

#2 User is offline   Backslider 

  • Advanced Member
  • PipPipPip
  • Yii
  • Group: Members
  • Posts: 357
  • Joined: 23-July 09

Posted 04 January 2013 - 06:09 PM

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?)
We were all once expert at....... nothing.

yii-language-behavior

My Blog
0

#3 User is offline   freshuser 

  • Junior Member
  • Pip
  • Yii
  • Group: Members
  • Posts: 52
  • Joined: 19-June 12

Posted 05 January 2013 - 05:03 AM

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

http://www.yiiframew...on-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.
0

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users