public function __construct($data = '', $code = 200, array $header = [], $options = []) { $this->data($data); $this->header = $header; $this->code = $code; if (!empty($options)) { $this->options = array_merge($this->options, $options); } $this->contentType($this->contentType, $this->charset); }
public function __construct($data = '', $code = 302, array $header = [], array $options = []) { parent::__construct($data, $code, $header, $options); $this->cacheControl('no-cache,must-revalidate'); }