EditableSaver.php
public function checkErrors()
    {
        if ($this->model->hasErrors()) {
            $msg = array();
            foreach($this->model->getErrors() as $attribute => $errors) {
               $msg = array_merge($msg, $errors);
            }
            //todo: show several messages. should be checked in x-editable js
            //$this->error(join("\n", $msg));
            $this->error($msg[0]);
        }
    }
public function checkErrors()
    {
        if ($this->model->hasErrors()) {
            $msg = array();
            foreach($this->model->getErrors() as $attribute => $errors) {
               $msg = array_merge($msg, $errors);
            }
            //todo: show several messages. should be checked in x-editable js
            //$this->error(join("\n", $msg));
            $this->error($msg[0]);
        }
    }
public function checkErrors ( ) { if ( $ this -> model -> hasErrors ( ) ) { $ msg = array ( ) ; foreach ( $ this -> model -> getErrors ( ) as $ attribute => $ errors ) { $ msg = array_merge ( $ msg , $ errors ) ; } //todo: show several messages. should be checked in x-editable js //$this->error(join("\n", $msg)); $ this -> error ( $ msg [ 0 ] ) ; } }
errors as CHttpException
@param $msg
@throws CHttpException
errors as CHttpException