public function input($name, array $attr = NULL) { $attr['class'] = isset($attr['class']) ? $attr['class'] . ' date-picker' : 'date-picker'; return parent::input($name, $attr); }
public function set($value) { if (parent::set($value)) { unset($this->relatedModel); } }