Login | Forgot password | Register
What is OpenID?
OpenID is an Internet-wide identity system that allows you to sign in to many websites with a single account.
With OpenID, your ID becomes a URL (e.g. http://username.myopenid.com/). You can get a free OpenID for example from myopenid.com.
For more information visit the official OpenID site.
Archive
SilverStripe Forums » Archive » Outputting text
Our old forums are still available as a read-only archive.
|
Page:
1
|
Go to End | |
| Author | Topic: Outputting text | 447 Views |
-
Outputting text

4 September 2008 at 11:10pm
So I have a function which returns some text.
The text has returns in it.
So I call the function through the template and it returns the text.
But..
the text no longer has returns.
Can someone help please!!!
Is this a CSS issue? -
Re: Outputting text

5 September 2008 at 3:44pm
by returns do you mean new lines? if you want new lines you might need to return your text like this
return "this is a string\n with a new line inside it\n"
| 447 Views | ||
|
Page:
1
|
Go to Top |
Currently Online: AnthonyP, Euphemismus, dotperinch
Welcome to our latest member: Jules


