summaryrefslogtreecommitdiff
path: root/framework/prado.php
diff options
context:
space:
mode:
Diffstat (limited to 'framework/prado.php')
-rw-r--r--framework/prado.php4
1 files changed, 3 insertions, 1 deletions
diff --git a/framework/prado.php b/framework/prado.php
index cfd10705..1f0bd7a0 100644
--- a/framework/prado.php
+++ b/framework/prado.php
@@ -34,7 +34,9 @@ if(!function_exists('__autoload'))
{
function __autoload($className)
{
- require_once($className.Prado::CLASS_FILE_EXT);
+ include_once($className.Prado::CLASS_FILE_EXT);
+ if(!class_exists($className,false))
+ Prado::fatalError("Class file for '$className' cannot be found.");
}
}