Welcome Guest, Not a member yet? Register   Sign In
Displaying text from textarea.
#5

[eluser]John_Betong_002[/eluser]
[quote author="donald.tbd" date="1308284899"]Thanks, nl2br did the trick. Now the question is can i put it somewhere in the code so i dont have to write it in the view part every time i need to display a textarea content. Or is it better to write it in the view?[/quote]

Try it and see if there is a difference between view, controller or model.

Let us know if you have any problems.

Usually I use nl2br() in the model.

It is up to you where you use it.
 
 
 


Messages In This Thread
Displaying text from textarea. - by El Forum - 06-14-2011, 01:12 PM
Displaying text from textarea. - by El Forum - 06-14-2011, 04:39 PM
Displaying text from textarea. - by El Forum - 06-14-2011, 06:57 PM
Displaying text from textarea. - by El Forum - 06-16-2011, 05:28 PM
Displaying text from textarea. - by El Forum - 06-16-2011, 06:27 PM



Theme © iAndrew 2016 - Forum software by © MyBB