Hello,
Since the Coding Help forum seems broken I will ask this here...
I am having some problems when calling reset() from inside a class. It keeps saying that reset() is an undeclared function but it is a built-in php function. Here is an example:
// create the cart
tug_session_register('cart');
$cart = new shoppingCart;
// Portion of the class file referred to (Fatal error: Call to undefined function: reset() in /home/tug/public_html/includes/classes/shopping_cart.php on line 11
):
class shoppingCart {
var $contents, $total, $weight;
function shoppingCart() {
$this->reset();
}
}