D
D
Denis Rybin2016-07-08 08:08:06
Yii
Denis Rybin, 2016-07-08 08:08:06

How to make widget for yii2 using 2 activeRecord model fields?

I am making a widget that should use 2 model fields, I need it to fit into a standard form with design and validation that ActiveForm generates, I don’t know how to implement to write a minimum of my html, widgets that I found all use only one field (except ActiveForm).
how to do it better?
I tried it on Html::active* helpers, didn't do it right or didn't do it right.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
N
Nikita, 2016-07-08
@bitver

I would advise you to create get / setMyValue () methods in the model, work through them, and not take a steam bath;)

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question