fix Validator
This commit is contained in:
parent
28429039a4
commit
526262c80b
9 changed files with 38 additions and 39 deletions
|
|
@ -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(
|
||||
// Сначало ищем локально
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue