/**
  * Error handler that writes the errors directly to
  * output in bright red on yellow.
  */
 public static function schemeValidationErrorHandler($errno, $errstr, $errfile, $errline)
 {
     static $first = true;
     if ($first) {
         self::$xhtmlValidationErrors[] = '<span style="background-color: yellow; color: #c00000;"><b>THIS IS NOT A VALID XHTML FILE</b></span><br />';
         $first = false;
     }
     self::$xhtmlValidationErrors[] = "<span style=\"background-color: yellow; color: #c00000;\">{$errstr}</span><br />";
     self::$foundErrors = true;
 }
 public function actionAddProductsInAgreement($optId)
 {
     $data = Costbook::getAll();
     $agmntView = new AgreementView($data, $optId, NULL);
     $view = new MyCustomView(ZurmoDefaultViewUtil::makeStandardViewForCurrentUser($this, $agmntView));
     echo $view->render();
 }