I have a model having two items : is_normal and is_transporter
I would like to show both in an active form as radio list but i havent figured out how
This is the model:
public function rules()
{
return [
[['reg_no', 'truck_category', 'added_by', 'truck_status', 'driver_name'], 'required'],
[['truck_category', 'added_by', 'truck_status', 'is_normal', 'is_transporter'], 'integer'],
[['added_on'], 'safe'],
[['reg_no'], 'string', 'max' => 50],
[['driver_name'], 'string', 'max' => 100],
[['truck_category'], 'exist', 'skipOnError' => true, 'targetClass' => TblChecklistCategory::className(), 'targetAttribute' => ['truck_category' => 'id']],
[['added_by'], 'exist', 'skipOnError' => true, 'targetClass' => User::className(), 'targetAttribute' => ['added_by' => 'id']],
[['truck_status'], 'exist', 'skipOnError' => true, 'targetClass' => TblTruckStatus::className(), 'targetAttribute' => ['truck_status' => 'id']],
];
}
How can i use the two model attributes in active form as a radiolist