<?php if ($setting['type'] == 'passwordInput') { ?> <?php echo $form->field($model, $key)->passwordInput()->label($setting['title'])->hint($setting['description']); ?> <?php } ?> <?php if ($setting['type'] == 'dropDownList') { ?> <?php echo $form->field($model, $key)->dropDownList(in_array($setting['data'], ['{TIMEZONE}', '{LOCALE}']) ? Setting::getListData($setting['data']) : json_decode($setting['data'], true))->label($setting['title'])->hint($setting['description']); ?> <?php } ?> <?php } ?> </div> <?php } ?> <?php } ?>