Buenas estoi usando un carrito de la compra , y al usar este codigo me dice lo siguiente , a ver si alguien puede ayudarme ? salu2 rAdGe
Fatal error: The script tried to execute a method or access a property of an incomplete object. Please ensure that the class definition carrito of the object you are trying to operate on was loaded _before_ the session was started in /var/www/html/mambo/carrito/mete_producto.php on line 3
Código:
<?
include("lib_carrito.php");
?>
<html>
<head>
<title>Introduce Producto</title>
</head>
<body>
<?
$_SESSION["ocarrito"]->imprime_carrito();
?>
<br>
<br>
<a href="index.php">Volver</a>
</body>
</html>