Enabled having a default Model instead of needing Model_* files for each table.
This commit is contained in:
parent
07819f8bc5
commit
31b9d9b3e5
@ -514,6 +514,17 @@ class Kohana_Core {
|
|||||||
return TRUE;
|
return TRUE;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Enable finding a default Model
|
||||||
|
if ($path = Kohana::find_file($directory,'Model/DEFAULT')) {
|
||||||
|
// Load the class file
|
||||||
|
require $path;
|
||||||
|
|
||||||
|
Model_DEFAULT::_default($class);
|
||||||
|
|
||||||
|
// Class has been found
|
||||||
|
return TRUE;
|
||||||
|
}
|
||||||
|
|
||||||
// Class is not in the filesystem
|
// Class is not in the filesystem
|
||||||
return FALSE;
|
return FALSE;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user