input 相关的方法有两组:以 active 开头的被称为 active inputs, 另一组则不以其开头。active inputs 依据指定的模型和属性获取数据, 而普通 input 则是直接指定数据。
一般用法如下:
type, input name, input value, options
Html::input('text', 'username', $user->name, ['class' => $username])
type, model, model attribute name, options
Html::activeInput('text', $user, 'name', ['class' => $username])