.form-control:focus < svg.user-login
.inner-addon:hover svg {
fill:#000;
}
$('input').on('click',function(){
$(this).siblings("svg").css('fill','#000');
});
public function getAddFeild(){
return $this->hasOne(AddFeild::className(),['id_good'=>'id']);
}
<?= GridView::widget([
'dataProvider' => $dataProvider,
'columns' => [
['class' => 'yii\grid\SerialColumn'],
'id',
'title',
'addFeild.someAttribute',
['class' => 'yii\grid\ActionColumn'],
],
]); ?>
<?php
$model = MyModel::find()->all();
echo MainWidget::widget(['limit' => 7, 'data'=>$model]); ?>
<?php
echo MainWidget::widget(['limit' => 7, 'data'=>MyModel::classname]); ?>