public function sendContent() { echo $this->content; return $this; }
/** * Sends the file. */ public function sendContent() { if (!$this->isSuccessful()) { parent::sendContent(); return; } $outStream = fopen('php://output', 'wb'); $fileStream = $this->file->readStream(); stream_copy_to_stream($fileStream, $outStream); fclose($outStream); fclose($fileStream); }