cacert-testmgr/manager/library/plugins/plugin.charsetheader.php
Markus Warg 4f4c5ce3cc initial setup of framework code
enabled features
* login
* crt login
* top / left menu
* logging
* db layer
2010-03-31 16:43:49 +02:00

13 lines
No EOL
405 B
PHP

<?php
/**
* @author markus
* $Id: plugin.charsetheader.php 13 2009-11-24 14:52:56Z markus $
*/
class CharsetHeader extends Zend_Controller_Plugin_Abstract {
public function preDispatch(Zend_Controller_Request_Abstract $request) {
$response = $this->getResponse();
if ($response->canSendHeaders() === true) {
$response->setHeader('Content-Type', 'text/html; charset=utf-8');
}
}
}