initial setup of framework code
[cacert-mgr.git] / manager / library / plugins / plugin.charsetheader.php
1 <?php
2 /**
3 * @author markus
4 * $Id: plugin.charsetheader.php 13 2009-11-24 14:52:56Z markus $
5 */
6 class CharsetHeader extends Zend_Controller_Plugin_Abstract {
7 public function preDispatch(Zend_Controller_Request_Abstract $request) {
8 $response = $this->getResponse();
9 if ($response->canSendHeaders() === true) {
10 $response->setHeader('Content-Type', 'text/html; charset=utf-8');
11 }
12 }
13 }