public function getErrorHeader()
	{
		$err_str = '';
		$error_class = $this->getErrors();
		$error_session = Session::get($this->errors_key);

		if( $error_class )
		{
			foreach ($error_class->all() as $error_key => $error) {
				$err_str.="<div class=\"alert alert-danger\">{$error}</div>";
			}
		}

		if( $error_session)
		{
			foreach ($error_session->all() as $error_key => $error) {
				$err_str.="<div class=\"alert alert-danger\">{$error}</div>";
			}
		}

		$this->resetErrors();

		return $err_str;
	}
public function getErrorHeader()
	{
		$err_str = '';
		$error_class = $this->getErrors();
		$error_session = Session::get($this->errors_key);

		if( $error_class )
		{
			foreach ($error_class->all() as $error_key => $error) {
				$err_str.="<div class=\"alert alert-danger\">{$error}</div>";
			}
		}

		if( $error_session)
		{
			foreach ($error_session->all() as $error_key => $error) {
				$err_str.="<div class=\"alert alert-danger\">{$error}</div>";
			}
		}

		$this->resetErrors();

		return $err_str;
	}
public function getErrorHeader ( ) { $ err_str = '' ; $ error_class = $ this -> getErrors ( ) ; $ error_session = Session :: get ( $ this -> errors_key ) ; if ( $ error_class ) { foreach ( $ error_class -> all ( ) as $ error_key => $ error ) { $ err_str .= "<div class=\"alert alert-danger\">{$error}</div>" ; } } if ( $ error_session ) { foreach ( $ error_session -> all ( ) as $ error_key => $ error ) { $ err_str .= "<div class=\"alert alert-danger\">{$error}</div>" ; } } $ this -> resetErrors ( ) ; return $ err_str ; }
Print the form errors if exists

@return String|null
Print the form errors if exists