Flash message not displaying CakePHP 1.3 (moved server)
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...
Asked by kro, on 16/1/12
0 Answers
Sorry, but there are no answers yet.
Your Answer
You can use Creole Wiki Syntax to format your text.
Rating
0
Viewed
351 times
Last Activity
on 16/1/12






