Re: error message appear on the top of html
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 group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~--~~~~--~~--~--~---
Re: error message appear on the top of html
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 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 group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~--~~~~--~~--~--~---
Re: error message appear on the top of html
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 [EMAIL PROTECTED] wrote: 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 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 group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~--~~~~--~~--~--~---