Welcome Guest, Not a member yet? Register   Sign In
CodeIgniter and phpbb3 $db class interference
#1

[eluser]j3nnings[/eluser]
I am trying to get CodeIgniter and phpbb 3.0 sessions to work together, but they just aren't playing properly.

The database class in both software share the same variable $db.

So when I load the database classes of phpbb, I get the following

Code:
Fatal error: Call to a member function sql_query() on a non-object in forums/includes/cache.php on line 51

I believe this is the first database call in phpbb.

Is there a way to fix this? It is impossible to rename every instance of $db in phpbb and expect to have a functioning forum.

Would it be simple enough to rename it in CodeIgniter? Can I prevent the conflict some other way?
#2

[eluser]j3nnings[/eluser]
Going to try this:
http://codeigniter.com/wiki/phpBB3_library/
#3

[eluser]tobefound[/eluser]
Curious to find out how it went? Was the library working ok?

/T
#4

[eluser]j3nnings[/eluser]
Yeah, I've actually been using it ever since. The only problem is that some of its functions interfere with some of CodeIgniter libraries.
#5

[eluser]tobefound[/eluser]
Cool.

How do you include the actual forum in CI? As a view?

/T




Theme © iAndrew 2016 - Forum software by © MyBB