view.php 915 B

123456789101112131415161718192021222324252627282930313233343536
  1. <?php
  2. use yii\helpers\Html;
  3. use yii\widgets\DetailView;
  4. /* @var $this yii\web\View */
  5. /* @var $model common\models\WechatUser */
  6. $this->title = $model->id;
  7. $this->params['breadcrumbs'][] = ['label' => Yii::t('common', 'Wechat Users'), 'url' => ['index']];
  8. $this->params['breadcrumbs'][] = $this->title;
  9. ?>
  10. <?= $this->render('../site/view_menu', [ 'model' => $model]) ?><div class="box box-success">
  11. <div class="box-body">
  12. <?= DetailView::widget([
  13. 'model' => $model,
  14. 'attributes' => [
  15. 'id',
  16. 'openid',
  17. 'unionid',
  18. 'tel',
  19. 'nickName',
  20. 'avatarUrl:url',
  21. 'country',
  22. 'province',
  23. 'city',
  24. 'language',
  25. 'signature',
  26. 'created_at:datetime',
  27. 'updated_at:datetime',
  28. 'status',
  29. 'gender',
  30. ],
  31. ]) ?>
  32. </div>
  33. </div>