public function renderErrors($errors)
    {
        if (empty($errors)) {
            return null;
        }

        $message = '';

        foreach ($errors as &$error) {
            foreach ($error as $errorCode => &$errorMsg) {
                $message .= $this->errorMapper($errorCode, $errorMsg);
            }
        }

        return $message;
    }
public function renderErrors($errors)
    {
        if (empty($errors)) {
            return null;
        }

        $message = '';

        foreach ($errors as &$error) {
            foreach ($error as $errorCode => &$errorMsg) {
                $message .= $this->errorMapper($errorCode, $errorMsg);
            }
        }

        return $message;
    }
public function renderErrors ( $ errors ) { if ( empty ( $ errors ) ) { return null ; } $ message = '' ; foreach ( $ errors as & $ error ) { foreach ( $ error as $ errorCode => & $ errorMsg ) { $ message .= $ this -> errorMapper ( $ errorCode , $ errorMsg ) ; } } return $ message ; }
Render errors in html

@param array $errors Array of errors to display

@return null|string
Render errors in html