title: Load page wait a second then download file using Codeigniter v2
body: <p>I have a controller that in nutshell is as follows:</p>
  
  <pre><code>public function download($id) {
    $data = array();
  
    force_download($data['brochure']-&gt;location, $data['brochure']-&gt;name);  
    $this-&gt;renderPage('site/download', $data); // simple method basically same as load-&gt;view
  }
  </code></pre>
  
  <p>I want the page view and then after a second to force download the file - the current function downloads the file but not the view, can anyone suggest how to get around this?</p>