diff options
author | Derek Allard <derek.allard@ellislab.com> | 2007-02-15 19:20:05 +0100 |
---|---|---|
committer | Derek Allard <derek.allard@ellislab.com> | 2007-02-15 19:20:05 +0100 |
commit | a8b10bed6b1064548b8af605e5b16113b457de02 (patch) | |
tree | 261755110d8975c9ff793246ba20c4fd00ff0f78 /system/libraries/Loader.php | |
parent | c4ac15f47a73a2db99406d901d53803b87f255bb (diff) |
allow for extending models
Diffstat (limited to 'system/libraries/Loader.php')
-rw-r--r-- | system/libraries/Loader.php | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/system/libraries/Loader.php b/system/libraries/Loader.php index e634c3885..8438cc0bb 100644 --- a/system/libraries/Loader.php +++ b/system/libraries/Loader.php @@ -154,10 +154,7 @@ class CI_Loader { $CI->load->database($db_conn, FALSE, TRUE);
}
- if ( ! class_exists('Model'))
- {
- require_once(BASEPATH.'libraries/Model'.EXT);
- }
+ load_class('Model', false);
require_once(APPPATH.'models/'.$path.$model.EXT);
|