0
yii2 팝업 창 피드백 양식을 만들려고했는데 프로그래머 자습서를 따랐습니다. 튜토리얼에서 프로그래머는 내가 사용해야하지만, main.phpyii2 navbar 위젯 매개 변수를 단일 html 매개 변수로 전송
echo Nav::widget([
'options' => ['class' => 'navbar-nav navbar-right'],
'items' => [
['label' => 'Home', 'url' => ['/site/index']],
['label' => 'About', 'url' => ['/site/about']],
**['label' => 'Contact', 'url' => '#', 'options' => ['data-toggle' => 'modal', 'data-target' => '#myModal']]**,
프로그래머가 접촉 라벨에 탐색 위젯 내부의 이러한 parametres을 준에
'options' => ['data-toggle' => 'modal', 'data-target' => '#myModal']
을 NAVBAR 이러한 parametres했다 - > [ '데이터 토글'=> '모달', '데이터 대상'=> '#myModal'] <는 - 여기에서 parametres :::
<a href="#" class="btn"><?=Yii::t('common', 'Participate'); ?></a>,
하지만 난이 값을 제공하는 방법을 잘 모릅니다 내 <a> tag or here <?=Yii::t('common', 'Participate'); ?>,
어떻게해야합니까? 그리고 해결책이 있습니까?
형제가, 내가 그것을했고, tihs 위치 [ '라벨'=> '기업', 'URL'=> '에서 일하고, 작동하지 않는 경우 # ','options '=> ['data-toggle '=>'모달 ','data-target '=>'#myModal '], –