class ScheduleForm extends \yii\base\Model
{
    public $schedule;
    public $enable_time_zone;
    public $enable_production_calendar;

    public function rules()
    {
        return [
            [['schedule'], 'required'],
            [['schedule','enable_time_zone','enable_production_calendar'], 'safe'],
            ['schedule', function ($attribute, $params) {
                ScheduleValidator::validateSchedule($attribute, $params, $this);
            }],
        ];
    }
    public function behaviors()
    {
        return [
            'beforeValidate' => [
                'class' => ScheduleBehavior::class,
                'attribute' => 'schedule',
            ],
        ];
    }
}
$model = new ScheduleForm;
$form = ActiveForm::begin();
$form->field($model, 'schedule')->widget(ScheduleInputWidget::class);


Статус День недели Время начала Время окончания


                    


Статус День недели Время начала Время окончания