hallo, nochmal ein problem mit classen undzwar:
fehler
die datei existiert und wird geincludet.
PHP-Code:
class classHandle
{
function __construct($class,$handle=0)
{
$this->handle = $handle;
$this->className[$handle] = $class;
$this->path[$this->handle] = dirname(__FILE__)."\..\classes\\".$class."\\".$class.".php";
}
function load($handle=0)
{
if(file_exists($this->path[$handle]))
{ include_once($this->path[$handle]);
$this->tempClass[$handle] = new $this->className; # <<<< fehlerzeile
return true; }
else
{ return false; }
}
function getVar($str,$handle=0)
{
return $this->path[$handle];
}
function useIn($function,$handle=0)
{
if(!$this->tempClass[$handle]) { return false; }
return $this->tempClass[$handle]->$function();
}
}
Code:
Fatal error: Class name must be a valid object or a string in D:\host\xampp\htdocs\yahs\core\function.php on line 224
Kommentar