use nl2br(); function when you print code
--
Lep pozdrav, Tilen Majerle
2012/11/6 Chris <chris69m@yahoo.com>
hi guys,... I'm using cake 1.3,... how can I add <pre></pre> tags in a form textarea so it can count on return "Enter" ??cause of display I have in a view is <pre>some content submitted by form</pre> and the form I have is this:<p style="display: block; font-size: 1.2em; text-align: left;"><?php echo $this->Form->textarea('content', array('rows' => '4')); ?></p>thanks in advance,...chris--
Like Us on FaceBook https://www.facebook.com/CakePHP
Find us on Twitter http://twitter.com/CakePHP
---
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+unsubscribe@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php?hl=en.
Like Us on FaceBook https://www.facebook.com/CakePHP
Find us on Twitter http://twitter.com/CakePHP
---
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+unsubscribe@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php?hl=en.
No comments:
Post a Comment