fix Validator

This commit is contained in:
origami11@yandex.ru 2022-11-28 18:44:09 +03:00
parent 28429039a4
commit 526262c80b
9 changed files with 38 additions and 39 deletions

View file

@ -171,8 +171,9 @@ class Component
*/
public function getModel($name)
{
$modelName = "Mapper_" . $name;
$modelName = "App\\Mapper\\" . $name;
$model = new $modelName();
$model->config = $this->config;
$model->db = $this->db;
return $model;
}
@ -260,7 +261,7 @@ class Component
} else {
$component = new $className();
$template = $component->getTemplateName($registry);
$template = $component->getTemplateName($site->config);
$component->viewPath = array(
// Сначало ищем локально