Here i like to explain my problem clearly,
the below code is used to store the attached file address, in gridview i have make it as a link, so if i click the link it will show the file which is on the link
this is grid view code:
[
'label'=>'document_details',
'format'=>'raw',
'value' => function($model){
$data = $model->document_details;
$url = explode(',', $data);
$result = "";
foreach ($url as $key => $value) {
$result .= Html::a($value, $value);
}
return $result;
}
],
but the problem is am not able to do it on Detail view, i dont know how to do it.