Core/Http/Response/Response.php
public function run() {
			header('Content-Type: ' . $this->_contentType);

			if ($this->_status != 200) {
				http_response_code($this->_status);
			}

			if (array_key_exists($this->_status, $this->_statusErrorPage)) {
				$tpl = new Template($this->_statusErrorPage[$this->_status], $this->_status, '0', Request::instance()->lang);

				$tpl->assign([
					'code'        => $this->_status,
					'description' => $this->_statusCode[$this->_status]
				]);

				$this->_page = $tpl->show();
			}
			else {
				foreach ($this->_headers as $value) {
					header($value);
				}
			}
		}
public function run() {
			header('Content-Type: ' . $this->_contentType);

			if ($this->_status != 200) {
				http_response_code($this->_status);
			}

			if (array_key_exists($this->_status, $this->_statusErrorPage)) {
				$tpl = new Template($this->_statusErrorPage[$this->_status], $this->_status, '0', Request::instance()->lang);

				$tpl->assign([
					'code'        => $this->_status,
					'description' => $this->_statusCode[$this->_status]
				]);

				$this->_page = $tpl->show();
			}
			else {
				foreach ($this->_headers as $value) {
					header($value);
				}
			}
		}
public function run ( ) { header ( 'Content-Type: ' . $ this -> _contentType ) ; if ( $ this -> _status != 200 ) { http_response_code ( $ this -> _status ) ; } if ( array_key_exists ( $ this -> _status , $ this -> _statusErrorPage ) ) { $ tpl = new Template ( $ this -> _statusErrorPage [ $ this -> _status ] , $ this -> _status , '0' , Request :: instance ( ) -> lang ) ; $ tpl -> assign ( [ 'code' => $ this -> _status , 'description' => $ this -> _statusCode [ $ this -> _status ] ] ) ; $ this -> _page = $ tpl -> show ( ) ; } else { foreach ( $ this -> _headers as $ value ) { header ( $ value ) ; } } }
execute all the headers
@access public
@return void
@since 3.0
@package Gcs\Framework\Http\Core\Response
execute all the headers