$this->username)); echo…”/>
код из UserIdentity: findByAttributes(array('login'=>$this->username)); echo ""; print_r($record); echo ""; if($record===null){ $this->errorCode=self::ERROR_USERNAME_INVALID; }else if($record->password!==md5($this->password)){ $this->errorCode=self::ERROR_PASSWORD_INVALID; }else{ $this->_id=$record->id; $this->setState('login', $record->username); $this->errorCode=self::ERROR_NONE; } return!$this->errorCode; } public