sf_root_dir/apps/myapp/modules/mymodule/action/actions.class.php
に書く場合の構文
// コンテントタイプを指定
$this->getResponse()->setContentType('text/xml');
// HTTPヘッダーを指定
$this->getResponse()->setHttpHeader('Content-Language', 'en');
// HTTPステータスコードを指定
$this->getResponse()->setStatusCode(403);
// HTTP VARYヘッダを追加
$this->getResponse()->addVaryHttpHeader('Accept-Language');
// プロキシーサーバのキャッシュを回避するHTTPヘッダを追加
$this->getResponse()->addCacheControlHttpHeader('no-cache');
// クッキー(Cookies)をセット
$this->getResponse()->setCookie($name, $content, $expire, $path, $domain);
// メタデータをセット
$this->getResponse()->addMeta('キーワード', 'セットする内容');
// 検索ロボットの巡回を拒否
$this->getResponse()->addMeta('robots', 'NONE');
// 検索用のキーワードをセット
$this->getResponse()->addMeta('keywords', '検索キーワード');
// ページタイトルをセット
$this->getResponse()->setTitle('タイトル');
// sf_root_dir/css/以下にあるファイルを読み込み
$this->getResponse()->addStyleSheet('****.css');
// sf_root_dir/js/以下にあるファイルを読み込み
$this->getResponse()->addJavaScript('****.js');