Pogledajte određenu poruku
Staro 08. 10. 2014.   #3
stanke
član
Certified
 
Datum učlanjenja: 06.09.2012
Poruke: 64
Hvala: 0
342 "Hvala" u 10 poruka
stanke is on a distinguished roadstanke is on a distinguished roadstanke is on a distinguished roadstanke is on a distinguished road
Default

Resio sam problem, klase su mi bile velikim slovima a ja sam stavio strtolower zbog toga je greska evo ispravan kod


<?php
function __autoload($class_name)
{
try
{
$class_file = 'classes/'. $class_name.'.php';
if(is_file($class_file))
{
require_once $class_file;
}
else
{
throw new Exception("Unable to load class $class_name in file $class_file.");
}
}
catch (Exception $e)
{
$e->getMessage();
}
}
?>
stanke je offline   Odgovorite uz citat