_ci_init_vars() protected method

Clears old "flash" data, marks the new one for deletion and handles "temp" data deletion.
protected _ci_init_vars ( ) : void
return void
示例#1
0
 protected function _ci_init_vars()
 {
     parent::_ci_init_vars();
     // An added feature: Keep all the flash data on AJAX requests.
     if (IS_AJAX_REQUEST) {
         $this->keep_flashdata();
     }
 }