public function doQrPng() { $showtime_id = (int) $this->_request->getQueryParam('showtime_id'); header("Content-Type: image/png"); if ($showtime_id && ($file = $this->showtimeService->getPNGQrCode($showtime_id))) { readfile($file); } die; }