code: public function generateWithError($blnSwitchOrder=false)
  	{
  		$strWidget = $this->generate();
  		$strError = $this->getErrorAsHTML();
  
  		return $blnSwitchOrder ? $strWidget . $strError : $strError . $strWidget;
  	}
docs: Generate the widget with error message and return it as string
  
  @param boolean $blnSwitchOrder If true, the error message will be shown below the field
  
  @return string The form field markup