Ejemplo n.º 1
0
 /**
  * @param AbstractView $response
  */
 public static function contentTypeHeader(AbstractView $response)
 {
     $contentType = 'text/html';
     $charset = Configuration::get('phpframework', 'output_charset', 'utf-8');
     if ($charset) {
         $contentType .= '; charset=' . trim($charset);
     }
     $response->header('Content-Type', $contentType);
 }
Ejemplo n.º 2
0
 /**
  * @test
  */
 public function redirect()
 {
     $this->view->redirect('/');
 }