• 追加された行はこの色です。
  • 削除された行はこの色です。
* フィルター [#kdb612af]

 <?php
 class fooFilter extends sfFilter
 {
     public function execute ($filterChain)
     {
         $filterChain->execute();

         $request  = $this->getContext()->getRequest();
         $response = $this->getContext()->getResponse();

         $contentType = $response->getContentType();
         if (strpos($contentType, 'html') === false) {
             return;
         }

         $html = $response->getContent();
         $html = str_replce('</body>', 'TEST</body>', $html);
         $response->setContent($html);
     }
 }



トップ   新規 一覧 検索 最終更新   ヘルプ   最終更新のRSS