2015-01-07, 13:41:48
(2015-01-07, 11:42:37)shawn_a Wrote: use my hook components plugin and use an early hook, like common
OK, I installed the hook components plugin.
I renamed my "download" component "hook_download" and changed the reference to {% hook_download %} in the page's source code.
That apparently does the same thing it did before:
"Warning: Cannot modify header information - headers already sent by (..."
Not sure what you mean by "use an early hook, like common"?
I use the FrixelOne theme, if that makes any difference.
For reference, I pass an argument (a file name, via GET or POST) to the hook_download component script, which creates a download link via the php "header()" function so that the download starts immediately when the link is clicked.