Create Single Event ICS file with Expression Engine <p>I'm trying to create an ICAL file based on a single entry inside an Expression Engine channel but my methods of accomplishing this are failing. I've tried the following:</p> <ol> <li>Passing the entry ID into a new template (which creates the file) but using the <code>$_GET</code> function seems to be frowned upon in EE</li> <li><p>Creating a session variable with the entry ID but there seems to be no way of adding this variable to the {exp} query:</p> <p><code>{exp:channel:entries channel="gallery" entry_id="MY_PHP_VARIABLE" limit="1" show_future_entries="yes"}</code></p></li> </ol> <p>I haven't tried just making a flat file each time the single entry page is accessed with <code>fwrite()</code> and linking directly to it, but that seems like a costly move.</p> <p>Is there a way with PHP to make the file when I click a button? Maybe firing off a function written in the page so I don't need to pass or detect the <code>entry_id</code>?</p>