I use CodeIgniter and I have a function createRecord in a model:

```
public function createRecord($aRecordToSave) {
    $oLatestRecord = $this->getLatestRecord($aRecordToSave[$this->sForeignKey]);
    var_dump($oLatestRecord);
    $this->db->trans_begin();
    $this->db->where($this->sForeignKey, $aRecordToSave[$this->sForeignKey]);
    $this->db->update($this->sRecordsTable, array('latest' => 0));
  }

```

How can I display var\_dump output, when the function is executed only by writing in the database and page is redirected instantly from edit by clicking save to show view?