Is it possible to output HTML from a template/view without rendering the PAGE_CONTAINER template? I noticed I can echo out HTML followed by exit() to halt processing of everything else to only show what I want, but this feels horribly wrong/messy.
Sorry to bump up an old topic, but similarly, in my controller if I want to surface a file download, what is the proper way to render that vs a view? I feel like using exit() is really bad practice ha
<?phpnamespaceSome\Addon\Pub\View\Some;useXF\Mvc\View;classPageextendsView{publicfunctionrenderRaw(){// you can pass view params for deriving these dynamically if applicable$this->response->contentType('some/mime','');$this->response->setDownloadFileName('your-file.ext');return$this->params['file'];}}