1
I have this wich works fine outside xoops:
if (!isset($_SESSION['kshopcart'])) {
$_SESSION['kshopcart'] = new Cart;
}
$USER =& $_SESSION['kshopuser'];
$CART =& $_SESSION['kshopcart'];
doing a vardump the result is:
object(cart)(3) { ["items"]=> array(0) { } ["total"]=> int(0) ["tax"]=> int(0) }
Now inside XOOPS the same vardump gives me:
object(__PHP_Incomplete_Class)(4) { ["__PHP_Incomplete_Class_Name"]=>
string(4) "cart" ["items"]=> array(0) { } ["total"]=> int(0) ["tax"]=> int(0) }
From what I've been reading this might be related session_start(); wich gets iniatlized by XOOPS before the class in $_SESSION gets instantiated. I'm not sure how to correct this. Can someone help me?