原文转自 IT技术擎 http://it.techqing.com/thread-6701-1-1.html
yii2 页面显示类
use yii\helpers\Html ;
该文件包含的页面元素集合有以下
'type',
'id',
'class',
'name',
'value',
'href',
'src',
'action',
'method',
'selected',
'checked',
'readonly',
'disabled',
'multiple',
'size',
'maxlength',
'width',
'height',
'rows',
'cols',
'alt',
'title',
'rel',
'media',
使用的方式
<?php echo Html::resetButton('重置', ['class'=>'btn btn-primary','name' =>'submit-button']) ?>