php - cakephp flash messages dissapearing on apache server -


been stuck few hours here!

i using cakephp 2.4.4 , have pretty standard redirects flash messages. reason flash messages don't appear on production server(running apache)?! if comment out redirect flash message appears.

my app appears work on development server (which running nginx).

does have ideas?

$this->session->setflash(__('the user -'.$e["user"]['name'].'('.$e["user"]['resource_payroll_number'].') - has been activated'), 'alert', array('class' => 'alert-success'));  $this->redirect(array('action' => 'index')); 

this must because of debug level have. check core.php file.

/** * cakephp debug level: * * production mode: * 0: no error messages, errors, or warnings shown. flash messages redirect. * * development mode: * 1: errors , warnings shown, model caches refreshed, flash messages halted. * 2: in 1, full debug messages , sql output. * * in production mode, flash messages redirect after time interval. * in development mode, need click flash message continue. */ configure::write('debug', 2); 

this copied from github cakephp


Comments

Popular posts from this blog

html - Firefox flex bug applied to buttons? -

html - Missing border-right in select on Firefox -

c# - two queries in same method -