]> dev.renevier.net Git - syj.git/blob - application/controllers/plugins/SyjContentType.php
set charset in default content-type http header
[syj.git] / application / controllers / plugins / SyjContentType.php
1 <?php
2 /*  This file is part of Syj, Copyright (c) 2010-2011 Arnaud Renevier,
3     and is published under the AGPL license. */
4
5 class Syj_Controllers_Plugins_SyjContentType extends Zend_Controller_Plugin_Abstract
6 {
7     public function preDispatch(Zend_Controller_Request_Abstract $request) {
8         // set default content-type
9         $response = Zend_Controller_Front::getInstance()->getResponse();
10         $response->setHeader('Content-Type', 'text/html; charset=utf-8', true);
11     }
12 }