src/MvcCore/Ext/Forms/View.php
public function RenderErrors () {
		$this->form->PreDispatch();
		$result = '';
		$errors = & $this->form->GetErrors();
		if ($errors && $this->form->GetErrorsRenderMode() == \MvcCore\Ext\Forms\IForm::ERROR_RENDER_MODE_ALL_TOGETHER) {
			$result .= '<div class="errors">';
			foreach ($errors as & $errorMessageAndFieldNames) {
				list($errorMessage, $fieldNames) = $errorMessageAndFieldNames;
				$result .= '<div class="error ' . implode(' ', $fieldNames) . '">'.$errorMessage.'</div>';
			}
			$result .= '</div>';
		}
		return $result;
	}
public function RenderErrors () {
		$this->form->PreDispatch();
		$result = '';
		$errors = & $this->form->GetErrors();
		if ($errors && $this->form->GetErrorsRenderMode() == \MvcCore\Ext\Forms\IForm::ERROR_RENDER_MODE_ALL_TOGETHER) {
			$result .= '<div class="errors">';
			foreach ($errors as & $errorMessageAndFieldNames) {
				list($errorMessage, $fieldNames) = $errorMessageAndFieldNames;
				$result .= '<div class="error ' . implode(' ', $fieldNames) . '">'.$errorMessage.'</div>';
			}
			$result .= '</div>';
		}
		return $result;
	}
public function RenderErrors ( ) { $ this -> form -> PreDispatch ( ) ; $ result = '' ; $ errors = & $ this -> form -> GetErrors ( ) ; if ( $ errors && $ this -> form -> GetErrorsRenderMode ( ) == \ MvcCore \ Ext \ Forms \ IForm :: ERROR_RENDER_MODE_ALL_TOGETHER ) { $ result .= '<div class="errors">' ; foreach ( $ errors as & $ errorMessageAndFieldNames ) { list ( $ errorMessage , $ fieldNames ) = $ errorMessageAndFieldNames ; $ result .= '<div class="error ' . implode ( ' ' , $ fieldNames ) . '">' . $ errorMessage . '</div>' ; } $ result .= '</div>' ; } return $ result ; }
Render form errors.
If form is configured to render all errors together at form beginning,
this function completes all form errors into `div.errors` with `div.error` elements
inside containing each single errors message.
@return string
Render form errors . If form is configured to render all errors together at form beginning this function completes all form errors into div . errors with div . error elements inside containing each single errors message .