What am I missing here, the constructor function is being completey ignored... the variables are empty and it doesn't echo the test strings.
Code:class cart { var $item; var $started; var $max_qty; var $symbol; function cart() { $this->started = time(); $this->max_qty = 0; $this->symbol = "£"; echo "<h1>test</h1>"; echo "<h1>test</h1>"; echo "<h1>test</h1>"; }




Reply With Quote