|
@@ -11,6 +11,7 @@ class Model
|
|
|
[$app, $table] = explode('/', $table, 2);
|
|
|
$project = Dever::project($app);
|
|
|
if ($table) {
|
|
|
+ $app = strtolower($app);
|
|
|
$base = $project['path'] . $path . DIRECTORY_SEPARATOR . $table . '.php';
|
|
|
if (is_file($base)) {
|
|
|
$this->config = include $base;
|
|
@@ -20,7 +21,7 @@ class Model
|
|
|
if (isset($this->config['store']) && $store == 'default') {
|
|
|
$store = $this->config['store'];
|
|
|
}
|
|
|
- $file = $app . DIRECTORY_SEPARATOR . $table . '.php';
|
|
|
+ $file = $app. DIRECTORY_SEPARATOR . $table . '.php';
|
|
|
$this->config['app'] = $app;
|
|
|
$this->config['table'] = DEVER_PROJECT . '_' . $app . '_' . $table;
|
|
|
$this->config['load'] = $app . '/' . $table;
|