echo CHtml::activeNumberField($model, 'price');
echo CHtml::activeNumberField($model, 'quantity', array('class' => 'form-control', 'min' => 1, 'max' => 10));
echo CHtml::activeLabelEx($model, 'discount'); echo CHtml::activeNumberField($model, 'discount');This code will create a label for the `discount` attribute of the `$model` object, along with a numeric input field for the same attribute. Package library: This class belongs to the `yii\web\helpers` package of the Yii framework.