public function unregister()
{
spl_autoload_unregister(array($this, 'loadClass'));
}
public function loadClass($class)
{
if ($file = $this->findFile($class)) {
includeFile($file);
return true;
}
}
Вот эта часть кода вызывает ошибку: spl_autoload_unregister(array($this, 'loadClass')); не могу понять в чем дело?