public function generateWithError($blnSwitchOrder = false) { $strWidget = $this->generate(); $strError = $this->getErrorAsHTML(); return $blnSwitchOrder ? $strWidget . $strError : $strError . $strWidget; }