Answer the question
In order to leave comments, you need to log in
If the class property is an array, is it possible to access its element from ActiveForm?
There is this property:
'circles' => [
0 => [
'title' => 'years in IT',
'titleValue' => 10,
'data-percents' => 50,
],
1 => [
'title' => 'developers',
'titleValue' => 50,
'data-percents' => 50,
],
2 => [
'title' => 'projects',
'titleValue' => 150,
'data-percents' => 50,
],
3 => [
'title' => 'customers & partners',
'titleValue' => 200,
'data-percents' => 50,
],
]
<?= $form->field($model, "circles['titleValue']") ?>
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question