I know this is a stupid question, but I can’t get a string from:
$string = $form->field($model, ‘myfield’);
maybe I must use other method to get the value of one field in Activeform?
I know this is a stupid question, but I can’t get a string from:
$string = $form->field($model, ‘myfield’);
maybe I must use other method to get the value of one field in Activeform?
do you want to get a value before submit form or after ?
After. I need to get that string to present like a link in an Activeform.
Edit: after and before, truly…
try it:
<?= Html::a($model->myfield,"#") ?>
Nope, it return nothing. But, wait. I really don’t need to edit that field so i can only show it in the view with DetailView.
But the problem still the same: need a string from that field, because i need an html link composed from Url::home(true) + field.
(Sorry if I was unclear)