Commit c5cc487b authored by Shakarim Sapa's avatar Shakarim Sapa

- Добавлена подгрузка выпадающего списка шаблонов из таблицы

parent 925a0c93
...@@ -30,7 +30,7 @@ return [ ...@@ -30,7 +30,7 @@ return [
], ],
'message_template_id' => [ 'message_template_id' => [
'type' => 'dropdownlist', 'type' => 'dropdownlist',
'items' => array('1' => 'first template', '2' => 'second template') 'items' => \yii\helpers\ArrayHelper::map(\common\modules\messageTemplate\models\MessageTemplate::find()->all(), 'id', 'name')
], ],
'timeout' => [ 'timeout' => [
'type' => 'text', 'type' => 'text',
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment