Пример #1
0
 public function input($name, array $attr = NULL)
 {
     $attr['class'] = isset($attr['class']) ? $attr['class'] . ' date-picker' : 'date-picker';
     return parent::input($name, $attr);
 }
Пример #2
0
 public function set($value)
 {
     if (parent::set($value)) {
         unset($this->relatedModel);
     }
 }