[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

[OT] Duda de PHP Orientado a Objeto



hola amigos tengo una duda de php que a lo mejor algunos de ustedes puede ayudarme con eso,, hice lo siguiente

<body onload="javascript: verificaErroralCargar();
<?php
if(isset($_SESSION['objUser']))
    {
echo("mostrarPanelAdmin();");
    $objUser=$_SESSION['objUser'];
	$a=$objUser->getCorreo(); //esta es la linea No 32
	echo("alert('$a')");
 /*   $userRol=$objUser->getRol();
    if(isset($userRol))
    if($userRol->getIdRol()==1)
	  {
	   echo("mostrarPanelAdmin();");
	  }*/
}
?>
">

y obtuve este error


( ! ) Fatal error: main() [function.main]: The script tried to execute a method or access a property of an incomplete object. Please ensure that the class definition "usuario" of the object you are trying to operate on was loaded _before_ unserialize() gets called or provide a __autoload() function to load the class definition in J:\xampp\htdocs\PhpProject1\index.php on line 32 Call Stack #TimeMemoryFunctionLocation 10.0032123984{main}( )..\index.php:0


a que se debera esto, gracias de antemano.

----------------------------------------------------------------
This message was sent using IMP, the Internet Messaging Program.


--

Este mensaje le ha llegado mediante el servicio de correo electronico que ofrece Infomed para respaldar el cumplimiento de las misiones del Sistema Nacional de Salud. La persona que envia este correo asume el compromiso de usar el servicio a tales fines y cumplir con las regulaciones establecidas

Infomed: http://www.sld.cu/


Reply to: