PriymakVl
1/23/2020 - 11:55 AM

yii helper html link

yii helper html link

<?php 

	use yii\helpers\Html;

	Html::a('Profile', ['user/view', 'id' => $id], ['class' => 'profile-link'];

 ?>

 <?= Html::a('Profile', ['user/view', 'id' => $id], ['class' => 'profile-link']) ?>

 <?= Html::a('Profile', ['user/view', 'id' => $id], ['class' => 'btn btn-primary']) ?>