public function init()
 {
     parent::init();
     $this->classModel = Common::getClassName($this->model);
     $this->label = $this->model->getAttributeLabel($this->attr);
     $this->options = array_merge(['dateFormat' => "yy-mm-dd", 'multidate' => true, 'disabledWeekends' => true, 'monthNamesShort' => ['มกราคม', 'กุมภาพันธ์', 'มีนาคม', 'เมษายน', 'พฤษภาคม', 'มิถุนายน', 'กรกฏาคม', 'สิงหาคม', 'กันยายน', 'ตุลาคม', 'พฤศจิกายน', 'ธันวาคม']], $this->options);
 }
 public function init()
 {
     parent::init();
     $this->classModel = Common::getClassName($this->model);
     if (empty($this->between)) {
         $this->label = $this->model->getAttributeLabel($this->attr);
     } else {
         $this->label[0] = $this->model->getAttributeLabel($this->between[0]);
         $this->label[1] = $this->model->getAttributeLabel($this->between[1]);
     }
     $this->options = array_merge(['format' => 'Y-m-d H:i', 'lang' => 'th', 'datepicker' => true, 'timepicker' => true, 'disabledWeekends' => true, 'inline' => false, 'scrollMonth' => false, 'yearStart' => date('Y') - 100, 'yearEnd' => date('Y') + 100, 'minTime' => '08:30', 'maxTime' => '22:30', 'step' => 30], $this->options);
 }