Загрузка модели
This commit is contained in:
parent
0f3d83c26a
commit
a48bce8552
1 changed files with 1 additions and 2 deletions
|
|
@ -20,8 +20,7 @@ class Model_Factory
|
|||
*/
|
||||
public function getModel ($name)
|
||||
{
|
||||
require_once (Shortcut::getUrl(self::$shortcut, strtolower($name)));
|
||||
$modelName = $name . "Mapper";
|
||||
$modelName = "Mapper_" . $name;
|
||||
$model = new $modelName();
|
||||
$model->db = $this->db;
|
||||
$model->factory = $this;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue