I have a controller which checks a date range and if there is a problem it displays a message. I have installed the application on a new server and suddenly the flash-message isn't displaying when the user selects an invalid date range. I am using the same hosting company so essentially all that has changed is the app url.
The code to display the message is as follows:
// redirect if any errors in date range
if(count($msg[0])>0){
$flashmsg = implode('<br />',$msg[0]).implode('<br />',$msg[1]);
$this->Session->setFlash(__($flashmsg, true),'default', array('class' => 'flash-message-success'));
$this->redirect(array('action' => 'feedback'));
}
The feedback() function is simply setting the layout to use.
Any advice would be greatly appreciated...
it turned out the issue was due to some incorrect paths within the application due to hard-coding of same.