update api for manager

This commit is contained in:
iIronside
2022-01-05 17:11:31 +03:00
parent dccf3c012e
commit 18b7fb0765
19 changed files with 5168 additions and 50 deletions

View File

@ -18,7 +18,7 @@ class TemplateSearch extends Template
{
return [
[['id'], 'integer'],
[['title', 'created_at', 'updated_at'], 'safe'],
[['title', 'created_at', 'updated_at', 'template_file_name'], 'safe'],
];
}
@ -63,7 +63,8 @@ class TemplateSearch extends Template
'updated_at' => $this->updated_at,
]);
$query->andFilterWhere(['like', 'title', $this->title]);
$query->andFilterWhere(['like', 'title', $this->title])
->andFilterWhere(['like', 'template_file_name', $this->template_file_name]);
return $dataProvider;
}