Ver Mensaje Individual
  #3 (permalink)  
Antiguo 11/11/2015, 04:57
mandingo69
 
Fecha de Ingreso: octubre-2015
Mensajes: 12
Antigüedad: 8 años, 4 meses
Puntos: 0
Respuesta: Error al instanciar el objeto creado Fatal error: Call to undefined method

Gracias me ha arreglado ese problema pero ahora me surge otro xD!

Fatal error: Call to undefined function jugarPartida() in E:\wamp\www\index.php on line 24

Cita:
<?php
//include the required files
require_once('partida.php');
require_once('colgado.php');

//this will keep the game data as they refresh the page
session_start();

//if they haven't started a game yet let's load one
if (!$_SESSION['partida']['colgado'])
$_SESSION['partida']['colgado'] = new colgado();

?>
<html>
<head>
<title>Colgado</title>

</head>
<body>
<div id="content">
<form action="<?php echo $_SERVER['PHP_SELF']; ?>" method="POST">
<h2>Juguemos al Colgado!</h2>
<?php
$_SESSION['partida']['colgado'] = jugarPartida($_POST);
?>
</form>
</div>
</body>