Hello,
I am Having trouble with PHP returning that reset() is an undeclared function when called in a class (which is weird since it is a built-in function). For example:
tug_session_register('cart');
$cart = new shoppingCart;
// Portion of the class:
class shoppingCart {
var $contents, $total, $weight;
function shoppingCart() {
$this->reset();
}
}
Any ideas as to why it would be doing this?