I’m sure there is a simple solution, but my Google skills can’t seem to find an example to follow and could not find it in the Guide or Wiki, but how can I prepend or append an HTML element, such as an Input or Select with a button to open a modal?
Html::button(
'<span class="glyphicon glyphicon-plus-sign" aria-hidden="true"></span>', // .Yii::t('app', ' New City'),
[
'id'=>'NewCity' . $i,
'value'=>Url::to(['lst-cities/create']),
'title'=>Yii::t('app', 'Add a New City To The List'),
'class'=>'btn btn-success',
]
)
What is the proper way to do this using Yii2 with bootstrap 3?