Re: error message appear on the top of html

2008-05-06 Thread Sliv
Have you tried $this-Session-setFlash(__($message, true)); --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups CakePHP group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this

Re: error message appear on the top of html

2008-05-05 Thread Sliv
Are you sure you're talking about flash messages, or php/cake error messages (debug output)? I would recommend putting $session-flash in your LAYOUT file (views/ layouts/default.ctp or other), where you want flash messages to appear. --~--~-~--~~~---~--~~ You

Re: error message appear on the top of html

2008-05-05 Thread robert123
Thank you, I found the error, because I keep using __() function at the $this-Session-setFlash($message, ''); that is $this-Session-setFlash(__(some error message), ''); hence it always appear as the first message on the html. www.generics.ws www.genericsmed.com On May 6, 2:34 am, Sliv