Topic: Imprting punbb into cakephp
Hi,
I'm trying to import punbb into cakephp.
I have defined PUN_ROOT and included the file include/common.php
But a php fatal error jumps at me
Fatal error: Call to a member function query() on a non-object in ..../include/functions.php on line 125
I have var_dump($db) before line 120 on common.php
and its show me an object reference, but inside check_cookie() i get NULL.
For some odd reason the global $db doesn't work (also other global like $pun_user,$pun_config ....).
When overriding cakephp and running index.php or defining PUN_ROOT inside common.php and running it i get no error
Any idea why?
Thanks,
Assaf