2 /* This file is part of Syj, Copyright (c) 2010-2011 Arnaud Renevier,
3 and is published under the AGPL license. */
5 class Syj_Controllers_Plugins_SyjContentType extends Zend_Controller_Plugin_Abstract
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);