public function download_file() { $this->use_layout = false; $this->get_file = new $this->model_class(Request::get("id")); File::stream_file($this->get_file->path . $this->get_file->filename); }