title: yii2 DetailView template/layout without values
body: <p>I have a little problem in yii2 framework. </p>
  
  <ol>
  <li><p>I have DetailView widget</p>
  
  <pre><code>                &lt;?= DetailView::widget([
                      'model' =&gt; $table_1,
                      'attributes' =&gt; [
                          'year',
                          'table_zs_field_1',
                          'table_zs_field_2',
                          'table_zs_field_3',
                          'table_zs_field_4',
                          'table_zs_field_5',
                          'table_zs_field_6',
                          'table_zs_field_7',
                          'table_zs_field_8',
                          'table_zs_field_9',
                          'table_zs_field_10',
                          'table_zs_field_11',
                          'table_zs_field_12',
                          'table_zs_field_13',
                          'table_zs_field_14',
                          'table_zs_field_15',
                          'table_zs_field_16',
                          'table_zs_field_17',
                          'table_zs_field_18',
                          'table_zs_field_19',
                      ],
                  ]) ?&gt;
  </code></pre></li>
  <li><p>If i write this to code I'll see a DetailView widget with names of fields(get from model) and values.</p></li>
  <li><p>Problem: I want to hide values and show only names of fields from model and in next time hide names and show only values. Anybody know ?</p></li>
  </ol>