안녕하세요 여러분, 내 제품 기반 웹 애플리케이션 중 하나 인 yii2를 배우고 있습니다. 다음 comverting 동안 내가 yii2 HTML 코드 형식으로 & 받고 문제를 기존 코드를 변환하고있다 : 사람이 위를위한 솔루션이있는 경우 나에게 사람을Yii2 HTML 앵커 태그를 yii2 html :: a() 태그에 매핑하는 방법
<a href="grid_options.html">
<div>
<i class="fa fa-upload fa-fw"></i> Server Rebooted
<span class="pull-right text-muted small">4 minutes ago</span>
</div>
</a>
도움이 ??????
\yii\helpers\Html::a(\yii\helpers\Html::tag('div',
\yii\helpers\Html::tag('i', '', ['class' => 'fa fa-upload fa-fw']) . 'Server Rebooted' .
\yii\helpers\Html::tag('span', '4 minutes ago', ['class' => 'pull-right text-muted small'])
), \yii\helpers\Url::to('address'));
이 더 명확 코드가하려면 :
입니다. .. 감사합니다. @Mihai P :-) – Shaggie
다른 사람이 알 수 있도록 응답을 수락합니다. –