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>