Welcome Guest, Not a member yet? Register   Sign In
Flushing with code ignitor?
#12

[eluser]Tybion[/eluser]
Thanks, CroNiX, for your help.

Unfortunately, this does not work for me in CI 2.1.0. The following code creates the page CONTENT exactly as it should, but it does not get updated in the browser until the whole page has arrived (about 8 seconds).

(Also, in my rpt_table.php view, all of the table creation - 6,000 rows - is done with echo statements, but using the echo statements does not prevent the output being buffered.)

Code:
public function report($page) {                         // routes.php: $route['warehouse/(:any)']='warehouse/view/$1'
    if ($page=='drillhole') {
      $object=$this->drillhole_model;
    } else {
      die("<br />No report available for $page<br />");
    }
    $data=$object->get_params();           // set minx, base_url, etc. in session variables
    $data['query'] = $object->get_data($data);    // query object
    $data['title'] = 'Data Warehouse';
    echo $this->load->view('templates/rpt_header', $data, TRUE);       // views/templates/rpt_header.php
    echo $this->load->view('warehouse/rpt_table', $data, TRUE);       // views/warehouse/rpt_table.php - TRUE=return data instead of writing to browser.
  }


Messages In This Thread
Flushing with code ignitor? - by El Forum - 04-04-2009, 08:43 AM
Flushing with code ignitor? - by El Forum - 11-24-2009, 03:56 PM
Flushing with code ignitor? - by El Forum - 12-02-2009, 04:57 PM
Flushing with code ignitor? - by El Forum - 12-02-2009, 09:01 PM
Flushing with code ignitor? - by El Forum - 04-22-2010, 08:20 AM
Flushing with code ignitor? - by El Forum - 10-21-2010, 12:26 PM
Flushing with code ignitor? - by El Forum - 10-21-2010, 02:14 PM
Flushing with code ignitor? - by El Forum - 10-22-2010, 01:52 AM
Flushing with code ignitor? - by El Forum - 01-31-2012, 10:42 PM
Flushing with code ignitor? - by El Forum - 02-01-2012, 02:43 PM
Flushing with code ignitor? - by El Forum - 02-01-2012, 05:06 PM
Flushing with code ignitor? - by El Forum - 02-01-2012, 06:10 PM



Theme © iAndrew 2016 - Forum software by © MyBB