public static function setHttpMeta($o, $n = false, $nc = false, $d = false, $t = false) { $r = sfContext::getInstance()->getResponse(); $nc = sfConfig::get($nc, false); if ($n) { $r->addMeta('title', "{$o->{$n}}" . ($nc ? " - {$nc}" : ''), true, true); } if ($d) { $r->addMeta('description', "{$o->{$d}}", true, true); } if ($t) { if (isset($o->Tags) && count($o->Tags) > 0) { $r->addMeta('keywords', Utils::getJoin($o->Tags), true, true); } } }