error = $msg; Yii::info($msg); $this->hasError = true; } public function getError() { return $this->error; } }