public function setGlobalTemplate($template, $params = array())
 {
     $template = '_' . $template;
     $view = new opGlobalPartialView(sfContext::getInstance(), 'superGlobal', $template, '');
     $view->setPartialVars($params);
     $body = $view->render();
     $this->body = $body;
 }
 public static function decorateBySpecifiedTemplate($templateName, $templateParams = array())
 {
     $templateName = '_' . $templateName;
     $view = new opGlobalPartialView(sfContext::getInstance(), 'superGlobal', $templateName, '');
     $view->setPartialVars($templateParams);
     // decorated message is not HTML
     $view->getAttributeHolder()->setEscaping(false);
     return $view->render();
 }