i don't know if i understand you good, so i hope this is was you need:

use nl2br(); function when you print code

--
Lep pozdrav, Tilen Majerle
http://majerle.eu



2012/11/6 Chris <[email protected]>

> 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 [email protected].
> To unsubscribe from this group, send email to
> [email protected].
> 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 [email protected].
To unsubscribe from this group, send email to 
[email protected].
Visit this group at http://groups.google.com/group/cake-php?hl=en.


Reply via email to