CodeIgniter and phpbb3 $db class interference - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20) +--- Forum: Archived General Discussion (https://forum.codeigniter.com/forumdisplay.php?fid=21) +--- Thread: CodeIgniter and phpbb3 $db class interference (/showthread.php?tid=23820) |
CodeIgniter and phpbb3 $db class interference - El Forum - 10-22-2009 [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? CodeIgniter and phpbb3 $db class interference - El Forum - 10-22-2009 [eluser]j3nnings[/eluser] Going to try this: http://codeigniter.com/wiki/phpBB3_library/ CodeIgniter and phpbb3 $db class interference - El Forum - 01-27-2010 [eluser]tobefound[/eluser] Curious to find out how it went? Was the library working ok? /T CodeIgniter and phpbb3 $db class interference - El Forum - 01-27-2010 [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. CodeIgniter and phpbb3 $db class interference - El Forum - 01-27-2010 [eluser]tobefound[/eluser] Cool. How do you include the actual forum in CI? As a view? /T |