You could put this in your controller (edit and add) just after you
get the data back from the form or you can put the code in your model
in a before_save method.

Rick

On Jul 31, 6:16 am, in2lag <prchal.p...@gmail.com> wrote:
> Hi, i have problem in my application with new lines in posts. CakePHP
> probably replace "bad" characters from db results and i need to
> str_replace('\n','<br />',$somePost['Post']['text']) to keep new lines
> in posts, Can somebody help me with this problem? I tried to search
> google and this group, but with no success... Thank you
--~--~---------~--~----~------------~-------~--~----~
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 
cake-php+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to