Topic: $forum_db
Hi one and all, I hope that someone out there can help me?
I'm trying to get PunBB to play nice with CakePHP. I want Cake to know if someone is logged in via Pun or not.
I've gone through all the threads in this forum, and so far I've got the following (within my app_controller's beforeFilter()):
define('FORUM_ROOT', 'C:/xampp/htdocs-unknowntales/punbb/'); // path to punbb install directory
require FORUM_ROOT.'include/common.php';
The problem I've now got is the following error:
Fatal error: Call to a member function escape() on a non-object in C:\xampp\htdocs-unknowntales\punbb\include\functions.php on line 1350
Which relates to this line:
'ON' => 'o.ident=\''.$forum_db->escape($remote_addr).'\''
Which is making me think that for whatever reason, it can't find the $forum_db object.
Does anyone have any idea why this might be?
Thank you.
- http://theworldofdan.co.uk/
- http://arathor.net/
- http://unknowntales.net/