Welcome Guest, Not a member yet? Register   Sign In
Formatting database results
#2

[eluser]bigtony[/eluser]
The whole point of MVC is to separate out view logic from data logic. Therefore the view is the very place that you should be putting strtolower(), trim(), and htmlspecialchars(), etc., since these are all operations concerned with how stuff is output.

You can tidy it up a bit by using the functions in the [url="http://ellislab.com/codeigniter/user-guide/helpers/form_helper.html"]Form Helper[/url]


Messages In This Thread
Formatting database results - by El Forum - 09-17-2009, 11:32 PM
Formatting database results - by El Forum - 09-18-2009, 01:52 AM
Formatting database results - by El Forum - 09-18-2009, 10:28 AM
Formatting database results - by El Forum - 09-18-2009, 07:43 PM
Formatting database results - by El Forum - 09-19-2009, 12:12 AM
Formatting database results - by El Forum - 09-19-2009, 04:54 AM
Formatting database results - by El Forum - 09-19-2009, 12:30 PM
Formatting database results - by El Forum - 09-19-2009, 02:02 PM
Formatting database results - by El Forum - 09-19-2009, 02:14 PM
Formatting database results - by El Forum - 09-19-2009, 10:16 PM
Formatting database results - by El Forum - 09-29-2009, 02:53 PM



Theme © iAndrew 2016 - Forum software by © MyBB