Like params "show_template" and "disable_theme" in FrontEnd, I'm searching a mean to get the same behaviour in BackEnd.
I have created my own module and want to allowed BackEnd user to download some data in different formats (CSV, PDF, ...).
For that, I use in my module some header() instructions, whose :
Code: Select all
header("Content-Type: application/csv");
The problem here, is that the start of the BackEnd template is embedded in my files. In other word, my CSV file owns :
Code: Select all
- HTML header
- header of BackEnd
- Navigation
- Start of page content
- Then my data at CSV format.
How could I do so that template is not embedded in my file when I process the header() ?
Thanks for ideas.