/** * Adds a date validation rule if it doesn't already exist. * * @param string $model * @param string $column */ public function initialize($model, $column) { parent::initialize($model, $column); $this->rules += array(); }
/** * Adds a date validation rule if it doesn't already exist. * * @param string $model * @param string $column */ public function initialize($model, $column) { parent::initialize($model, $column); $this->rules += array('date' => null, 'max_length' => array(10)); }