public function init() { parent::init(); $this->attributes = (array) $this->attributes; $this->on = (array) $this->on; $this->except = (array) $this->except; }
public function init() { parent::init(); if ($this->message === null) { $this->message = Yii::t('yii', '{attribute} is not a valid mac-address.'); } }