/**
  * 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;
 }
 protected function actionCreateByModel(Agreement $agmnt, $redirectUrl = null)
 {
     $agmtRecordView = new AgmntRecordType($this, NULL);
     $view = new AgrmntRecordModelView(ZurmoDefaultViewUtil::makeStandardViewForCurrentUser($this, $agmtRecordView));
     echo $view->render();
 }